Tagged Questions
0
votes
1answer
38 views
Whether we can integrate a Python GUI with HTML page
I want to know whether we can integrate a Python GUI with HTML page. If possible please give a way out
-3
votes
0answers
36 views
Is it preferable to learn Python along with HTML & CSS? [closed]
I'm a complete beginner to programing, however I'm interested in learning web based programing. I've recently started with Python 2.x (also want to know if that's a good choice to begin with?)
What I ...
0
votes
0answers
10 views
Google Script - Code to grab html data - diesel price updates
I have looked over a couple of other questions which are almost identical to my issue - my coding however is terrible and i don't understand how to define the actual information i want... Any help ...
-3
votes
0answers
27 views
Data mining a website? [closed]
What's the easiest way to go about this? I'm most comfortable with Python and a little comfortable with bash. I've checked out the urllib2 library in Python and I've also checked out Scrapy.
I want ...
3
votes
1answer
36 views
Extract number followed and preceded by the words
Extract numbers followed and preceded by words:
String q = 'Consumer spending in the US rose to about 62% of GDP in 1960, where it stayed until about 1981, and has since risen to 71% in 2013'
q = ...
0
votes
2answers
18 views
Django home page URL being rendered as a different URL
So, I have a simple home page for a django project I am working on. In the upper left hand corner is the logo for the site. In my template, I have this code:
<a href="{% url "home" %}">Company ...
0
votes
1answer
31 views
Django CMS - check if placeholder is empty
I use:
DjangoCMS 2.4
Django 1.5.1
Python 2.7.3
I would like to check if my placeholder is empty.
<div>
{% placeholder "my_placeholder" or %}
{% endplaceholder %}
</div>
I ...
2
votes
2answers
39 views
Regex to read tags Python
I want to read elements within tags with regex, example:
<td>Stuff Here</td>
<td>stuff
</td>
I am using the following: re.findall(re.compile('<td>(.*)</td>'), ...
2
votes
2answers
38 views
Trying to parse a string to two seperate strings based on case
I'm currently working on a python bot which retrieves information from a meta block on an HTML page. I get the content of the meta block, and now I am stuck on trying to parse it to two different ...
0
votes
1answer
29 views
OnClick Javascript Drop-down Menu - Images don't load
I'm trying to use javascript in order to build an html form that will have an image, and a drop-down menu below the image. The default image will be an egg or 'yellow/0.png' and whenever you click an ...
0
votes
1answer
69 views
Extracting data from HTML with Python
I have following text processed by my code in Python:
<td>
<a href="http://www.linktosomewhere.net" title="title here">some link</a>
<br />
some data 1<br />
some data ...
0
votes
0answers
38 views
I have an indenting issue: my function returns 0.0, instead of a calculated value
I wrote a code for a damage calculator in Pokemon, that would return a calculated value (based on a damage formula) if given the required data in the html form. I'm absolutely sure that the html form ...
-2
votes
1answer
39 views
Login to site Python 3 [closed]
How do you login to this site using Python 3?
http://gymkhana.iitb.ac.in/~ugacademics/ug_acads/courserank/
I have a username and a password and I want to access the site's source code.
0
votes
1answer
28 views
Parsing a flattly-written nested text template into a usable nested data structure for N levels
I've recently been given a file intended to be used to generate HTML, a menu template of sorts and due to time constraints have gotten a python prototype working but it's brute force and works only ...
0
votes
1answer
34 views
Prevent a form field from displaying in the browser
I have a form and want that the user field should not be displayed.
models.py
class Questions(models.Model):
user=models.ForeignKey(User)
category=models.ForeignKey(Categories)
...
1
vote
3answers
39 views
Prevent a form field from displaying
I have a form and want that the user field should not be displayed.
models.py
class Questions(models.Model):
user=models.ForeignKey(User)
category=models.ForeignKey(Categories)
...
1
vote
1answer
33 views
When writing tests with selenium how can you view the resulting HTML?
Take for example the following selenium test in python:
import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class PythonOrgSearch(unittest.TestCase):
...
0
votes
2answers
26 views
how can i have a text field which have text in it and when the user clicks on the text field the text inside the field vanishes
i want to add a text inside a text-field which vanishes when user clicks on the text-field.
How can i do it?
I am using django-form
form.py
class CategoriesForm(ModelForm):
class Meta:
...
2
votes
3answers
43 views
Outputting difference in two pandas dataframes side by side - highlighting the difference
I am trying to highlight exactly what changed between two dataframes.
Suppose I have two Python Pandas dataframe
"StudentRoster Jan-1":
id Name score isEnrolled ...
0
votes
2answers
16 views
python cgi script receiving form data
I am trying to create a python program that will receive information from a form that is using html.
This is what i have for my html code.
<html>
<head>
<title> NBA Survey! ...
-4
votes
0answers
30 views
What steps where a user submits a song and then plays in real-time to all users [closed]
I would like to know any solution for real-time, imagine shoutcast or icecast,I just think it's a heavy solution for something simple and not well for dynamic manipulation playlists
Gracias
0
votes
1answer
30 views
html & javascript to use Python variables in GAE
The code bellow is a part of a Google App Engine project I am building with Python. I am taking input of x and y(not seen here), and printing it here as a table with its x,y coordinate as the text in ...
0
votes
1answer
19 views
How to return DOM from Selenium after click
I'd like to use Selenium to get the HTML of a page after a link has been clicked. Normally, I would just download the link I want to click, but in this case when the link is clicked it fires off some ...
0
votes
1answer
23 views
HTML form action giving error on apache
I am a HTML and Apache newbie.
A part of my current project is to make a User Interface to take data from a user, and send it to a python program for processing.
I have started learning how to do ...
0
votes
1answer
18 views
Encountering Error while using BeautifulSoup
I am trying to extract the words(verbs) starting with R from this page. But on executing the following code:
from bs4 import BeautifulSoup
import urllib2
url = ...
0
votes
1answer
17 views
Use value from javascript on html page to execute python script
I have a problem. I have a project that involves sending a value from a web page to a web server and using that value to generate a voltage by commanding a digital to analog converter. For the server ...
2
votes
2answers
30 views
Using scrapy, how to make xpath more selective?
I am using Scrapy to obtain an article.
>>> articletext = hxs.select("//span[@id='articleText']")
>>> for p in articletext.select('.//p'):
... print p.extract()
...
<p ...
0
votes
1answer
28 views
uploading html files and using python
For my forum, I tried uploading a file with html using:
<form action="profiles.py" method="post">
<label class="labelOne" for="pics">Change your Profile pic </label>
<input ...
0
votes
1answer
42 views
How would you record votes using a python program?
I have to make a survey using html and python. The html is finished but recording the answers to the survey using python does not work properly. I tried programming it such that when the radio buttons ...
2
votes
2answers
47 views
How can I convert HTML into text without markup in Python?
I need to get plain text from an HTML document while honoring <br> elements as newlines. BeautifulSoup.text does not process <br> and newlines. HTML2Text is quite nice, but it converts to ...