-1
votes
1answer
24 views

Where to extract Mako?

I am trying to embed Python in Html. Based on your past suggestions, I'm trying to install Mako. My question: Where should I extract Mako after downloading ? My website project is on drive E. If I ...
0
votes
1answer
34 views

is it possible recive form value witten in pure html in django views file

I am New to Django. I have html form file & want pass only two integer which will work in a view function. I need to get value in view function of django framework. I read form and Widgets but its ...
0
votes
0answers
17 views

d3.js Sequence Sunburst __data__ null

I am attempting to use a "sequence-sunburst" style d3 visualization for some data that I have. To get started, I decided to simply recreate what is given on the d3 website ...
0
votes
1answer
11 views

Image not loading in webapp build using Python on Heroku

This is my directory structure that I push on heroku : anon@ubuntu:~/projects/heroku$ ls -l total 32 drwxrwxr-x 6 anon anon 4096 Dec 25 21:10 env -rwxrwxr-x 1 anon anon 2404 Dec 30 02:39 myapp.py ...
0
votes
1answer
29 views

Python - input situation [on hold]

Basically I'm wanting to input data into a textbox within a webpage like this, but instead of it using post or get data, like textbox=example&send=submit, it uses another method, which I ...
0
votes
2answers
29 views

Downloaded utf-8 html file cannot be printed to terminal using Python 3

I'm just trying to download a html file with urllib and then printing the html to the terminal. The html file seems to be properly encoded in utf-8 as the meta tag specifies (saving it to a file and ...
0
votes
0answers
26 views

rendering html , javascript and css in python [on hold]

I am trying to build a browser .. I have done lexing and parsing and after parsing i have a nested python list available .. now i want to build some rendering engine so that i can call a function in ...
1
vote
2answers
56 views

Computer Speed and Python Runtime

So I have a bit of an issue that I am wondering if you guys can help me with. So I am writing a program right now that pulls some strings from html pages and adds them to a list. I have 50 some pages ...
-2
votes
0answers
39 views

How do I upload and use Python script with html on webserver?

I've downloaded a open source code from Github which contains python script and html files. It's a source code of a website. I want to upload the scripts and files to make it work like a website. ...
0
votes
1answer
30 views

getting information from a webpage for an application using python

I am currently trying to create a bot for the betfair trading site, it involves using the betfair api which uses soap and the new API-NG will use json so I can understand how to access the ...
0
votes
0answers
36 views

How can i get fully loaded html through python-mechanize?

Hi I'm using python mechanize to get datas from webpages. I'm trying to get imgurl from google image search webpage to download search result images. Here's my code I fill search form as 'dog' and ...
0
votes
0answers
33 views

How do I use a form from HTML to Python directly? [on hold]

I am trying to create a sign up form in HTML and have Python do the work. My HTML Side is a form set to the get method linking to my python file. The python script is supposed to get that info but ...
0
votes
1answer
21 views

identifying/tagging HTML elements in flask

A little background, the back end of this should receive a form and then populate a new list based on the filter from the post data. Let's say I have markup like this <form method="POST" ...
1
vote
0answers
25 views

How to Find An HTML Element by HTML Tree in BeautifulSoup of Python? [closed]

Can I reach an HTML item by its map in BeautifulSoup? The image you see is a sample. The item I want to reach is just embedded in table tags, not in div. So I could not reach them and wanted to ask ...
2
votes
2answers
67 views

Embedding a Python code in HTML

I am trying to develop a website which has currency converter as one of its parts. I have little familiarity with Python and HTML. I got a very short python code for currency converter.I want to embed ...
1
vote
1answer
23 views

Xpath to get text following label

I want to get items according to their (preceding) <label> attributes, like this: <div> <ul> <li class="phone"> ...
0
votes
1answer
31 views

Python, using Selenium how to clean page_source from char like /a0:

I am using selenium webdriver to get page source. But i get back a source filled with the /a0:, which i have read ment non-breaking space. So i was wondering: A. How to get read of it, sould i clean ...
3
votes
1answer
53 views

Forward slash character ends variable in python/html

I am trying to pass a URL to a variable in python (youtube url of the video to be played on the Raspberry Pi), but somewhere along the way the forward slash character is being interpreted as an end of ...
1
vote
2answers
40 views

Removing html tags and entities from string in python

I am getting xml data from api.careerbuilder.com Particularly, the string contains some html entities I am willing to remove, to no effect! I have tried doing this: import re ...
0
votes
0answers
16 views

Picking the maximum data yielding html table?

I have a process which extracts data from a pdf file. The problem is that it's algorithm based and it generates several different versions of structured data it finds. However, one of these table ...
0
votes
2answers
46 views

Django form will not validate

I am working with Django forms and for some reason, this form will not validate! It submits alright, or at least the runserver shows an http post response with code 200 (ok). For some reason though, ...
0
votes
2answers
33 views

django store text editor input value

6 and mysql as my database. I used bootstrap rich text editor. I want to store the values given in text editor(both content and images uploaded). I have searched but I didn't get any related solution. ...
0
votes
1answer
28 views

Mechanize without a form, just textbox and button

I've been searching Google for almost every query I can think of related to this. The page I'm trying to submit is something similar to this. There is no form. The objects are not grouped in a form. ...
0
votes
0answers
40 views

Populating tables in django

I'd like to populate a table as shown below using django +-------+-------+------------+------------+ | Date | Hour | Room2 | Room3 | +=======+=======+============+============+ | 01/01 | ...
1
vote
1answer
17 views

Login to website using urllib2 — Python 2.7

I need to log into this site: http://snowstresser.com/members/login.php It has no post action, so I don't know what to do... I realise that different websites use different login forms etc. So how do ...
0
votes
1answer
21 views

Html -> Python cgi-> Serial port

I'm attempting to run a python cgi script to send some data to a serial port. The HTML server crashes when I try open and to set the serial port to a variable. Here is code, it recieves a color from ...
0
votes
1answer
26 views

pisa html to pdf issue with greek stressed letters used with django

I am using pisa to generate a pdf from html in a django application. My view code is the following if request.method == 'POST': return write_to_pdf(request.POST['convert'], { }, 'file') ...
0
votes
2answers
30 views

Can't get count for app engine model with many to many relationship

I want to get a count of events for a single user. My models: class User(db.Model): name = db.StringProperty(required = True) pw_hash = db.StringProperty(required = True) email = ...
0
votes
2answers
69 views

Django - Have a class based view and Crispy form parrallell to each other on same page

Using Django, I am making a site that displays tickets. On the login page, I want it to where there is a preview area of existing tickets to the left of the login form. I am able to make both pages ...
0
votes
1answer
36 views

xpath pattern for all specific forms in html page

I have to locate all "login-form"-like forms in the html page. The requirement for such for is that it contains text input field, password field and button (submit or just a button). There shouldn't ...
1
vote
2answers
49 views

How to send data from website as input to the server? [closed]

This might be a very elementary question, but I am going to have a website, and it will have a text box and a send button. I think it is easy to make such a website. However, as a beginner in web ...
1
vote
1answer
18 views

Changing HTML child tags to siblings in Python

I have some HTML code which consists of <option> tags inside a select tag, however, the option tags are descendants of each other, but I want them to be siblings (direct children of the select ...
0
votes
0answers
35 views

Can IMAP be used to get original Gmail HTML

I am working on a project in python/django where for each individual gmail conversation, I want to grab the most recent gmail reply. Using IMAP I'm able to grab the body of the conversations and ...
0
votes
1answer
35 views

displaying results from sqlite database query

I have created a CGI webpage with a search box. My script queries an sqlite database with the input from the search box. Now, I want to display (on my webpage) all columns of the rows that matched ...
0
votes
2answers
37 views

Creating an sqlite database search engine with python

I have an sqlite database with 2 tables. I need to create a cgi search engine for the database, with 2 options in a drop-down menu: Name & Keyword. If the option is Keyword, the 1st table is ...
0
votes
2answers
29 views

Using Beautifulsoup in Python to iterate over non href links within an xml and retrieve specific information

I'm a python beginner and just started learning to crawl sites using Bsoup. I'm trying to pull contact information (address, company name) from all the separate links on this site. Generally, I ...
0
votes
1answer
35 views

How to recover a document from un properly closed tags in python?

Here is my problem I have a sample text like text="""<!--translated from: The Dutch Royal Library """ now I tried to strip this text from tags, but I always get this error using this code t ...
0
votes
1answer
38 views

BeautifulSoup “fixes” html on Windows 8, but not OS X or Windows 7

BeautifulSoup is giving me different results on different platforms. Can anyone help me understand why? Create a test.txt file with the following contents: <S1> </S1> When I run the ...
-1
votes
2answers
26 views

Page turns blank when I try to show map using google's map api

When the user logs in I want to show a map. The base html: <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="/static/main.css" /> <script ...
0
votes
1answer
36 views

Scrap website's html form on Python

So i was trying to scrap a website. When i scrap it, it turns out that the result isn't the same as when you try to right click and view page source on mozzila or google chrome. The code i ...
1
vote
2answers
39 views

How to I determine whether a character is valid-for/rendered-in html?

Some characters, such as ordinal 22 or 8, don't display in html (using chrome, for example when copy-and-pasting them into this 'Ask question' editor; I am assuming utf-8). How do I determine which ...
0
votes
1answer
48 views

POST data to python script

I have an html page hosted at my local server, apache2, I want to send some data to a python script and manipulate it, I use the when I use the action tag of the form, It doesn't navigate to the next ...
0
votes
1answer
24 views

How to parse HTML table using pyquery?

How to parse HTML table using pyquery? [See Source code html table on http://pastie.org/pastes/8556919 Result: { "category_1":{ "cat1_el1_label":"cat1_el1_value",}, ...
0
votes
1answer
39 views

How to store multiline text in html textarea from python?

I have an sql database where every row contains paragraphs of text. I want to display each row of text in it's own html textarea. I'm using python to generate the html page. I've tried the following ...
1
vote
1answer
58 views

jinja2 form include won't work

I'm making my first steps with flask and also jinja2. I have run through some examples but now i try to integrate flask-security and got stuck a bit. I try to built a modal with an login-form, so I ...
0
votes
1answer
59 views

Python: using urllib.urlretrieve to download files over HTTP not working

I'm still working on my mp3 downloader but now I'm having trouble with the files being downloaded. I have two versions of the part that's tripping me up. The first gives me a proper file but causes an ...
0
votes
2answers
44 views

geting rendered html text in django

How can I get my rendered html text in django? I need it because I want to use the html text in another template variable. My site has a main template and it has two part one is content and other is a ...
2
votes
2answers
39 views

Python, BeautifulSoup - <div> text and <img> attributes in correct order

I have a short piece of HTML that I would like to run through using BeautifulSoup. I've got basic navigation down, but this one has me stumped. Here's an example piece of HTML (totally made it up): ...
2
votes
1answer
22 views

How to use lxml to get javascript code from a textarea?

I'm trying to extract javascript code from a textarea here is my code: def getCode(self,request): #print "Extracting URL: " + request opener = self.login(self.username,self.password) ...
0
votes
1answer
37 views

Python: Creating a file based on an array of strings

I'm trying to write a program that will go to a website and download all of the songs they have posted. Right now I'm having trouble creating new file names for each of the songs I download. I ...

15 30 50 per page