Tagged Questions
1
vote
0answers
22 views
Brython: Moving Elements Every […] Microseconds
Good night. This is a question about Brython and any help will be welcome.
I'm looking for a way of moving elements (for example, a div) some pixels to the left (or to the right, top etc.) every time ...
-1
votes
0answers
18 views
Automated html site fill form
Dear stackoverflow users,
I'm trying to make a automated script which uploads the 2 files(one .tpr and one .cpt)
and fills the username and passwords and then submits.
How can I do that using Python?
...
0
votes
0answers
30 views
How to parse HTML from eMail body - Python
I'm trying to parse incoming emails in python.
I get emails which are part text part HTML.
I want to get the HTML part and find a table in the HTML.
I tried using beatifulsoup. But when trying the ...
-2
votes
1answer
28 views
Render a webpage (includes some javascripts) in Python [on hold]
I'm new in programming with Python. I just want to create a little webcrawler.
I already created my idea in C# but my Raspberry Pi doesn't support the Mono project in the right way (There is a long ...
0
votes
0answers
35 views
PDF to HTML Form in Python App
I have a web app mainly written in Python/Django that is very form dependent for storing user information on the backend. I would like to use existing PDF's for standardized/regulated documents ie: W4 ...
0
votes
1answer
18 views
Python/HTML - Accented characters not rendering properly in browser
I am trying to get a page from wikipedia's API and print that page to a file, using Python.
json_data = json.loads(issue_request(params_html))
document = ...
1
vote
1answer
25 views
wxPython htmlWindow <textarea> not working correctly
I am writing a simple program using wx.html.htmlWindow, and I have problem: when I try to render <textarea></textarea>, it is not being showed! Maybe I am doing something wrong?
Code:
...
-1
votes
1answer
37 views
How can I store html in a MySQL table using python
Okay here is my code. Hopefully you can help me. I am using the MySQL lib called MySQLdb.
def createNick(self, user, nick):
try: # TRY STATEMENT HERE SO THE NICK CAN BE RECREATED
...
-7
votes
0answers
49 views
Which Language to Choose for a Web Application? [on hold]
I would like to thank you in advance for your time reading this.
I want to develop something.
A user should be directed to a website, where he can fill out a form. The server is going to do some ...
0
votes
1answer
27 views
How to retrieve the values of dynamic html content using Python
I'm using Python 3 and I'm trying to retrieve data from a website. However, this data is dynamically loaded and the code I have right now doesn't work:
url = eveCentralBaseURL + str(mineral)
...
-1
votes
0answers
46 views
Convert this PHP script to PYTHON
I want to use this upload form in my website : http://tutorialzine.com/2013/05/mini-ajax-file-upload-form/
However I can't use PHP. I would like to call a script python (upload.py) :
<form ...
1
vote
1answer
24 views
customize BeautifulSoup's prettify by tag
I was wondering if it would be possible to make it so that prettify did not create new lines on specific tags.
I would like to make it so that span and a tags do not split up, for example:
...
1
vote
3answers
64 views
Can I scrape data from web pages when the data comes from JavaScript?
I'm not exactly sure how to phrase my question but I'll give it my best shot.
If I load up a webpage, in the HTML it executes a JavaScript file. And if I view the page source I can see the source of ...
0
votes
1answer
25 views
Trouble Getting a clean text file from HTML
I have looked at these previous questions
I am trying to consolidate news and notes from websites.
Reputed News service websites allow Users to post comments and views.
I am trying to get only ...
-6
votes
1answer
54 views
How to convert a pdf file to html file using python [on hold]
Hi presently there are some tools for converting pdf to html, html to pdf online and also some command line tools too available, but i am trying to design that functionality using python
When i ...
1
vote
1answer
27 views
Serving image with flask
I have a programm which generates an image. Now, I’d like to make this picture for other user in the network thanks to flask. But I can’t display this picture with the following code :
...
1
vote
2answers
51 views
wrapping html with a python function
I want to be able to wrap a div based on it's id. For example given the following HTML:
<body>
<div id="info">
<div id="a1">
</div>
<div ...
0
votes
1answer
11 views
python: Given a BytesIO buffer, generate img tag in html?
Is it possible to generate a functional image tag in html from a BytesIO buffer? I'd like to do something along these lines:
import matplotlib
matplotlib.use('Agg')
import pylab
import Image
import ...
1
vote
1answer
45 views
data loss from django template during page reload
I am passing a variable to the django template from view file
view.py
if request.method == 'POST':
t_t = request.POST.get('t_t')
t_o = T(user_id=1, t=t, d=d)
t_o.save()
return ...
0
votes
1answer
37 views
external javascript/jquery does not load inside of django project
I am working on a django project that works with a postgres database.
I have a search form that allows users to search the database. The search form works just fine. I wanted to make it a little ...
0
votes
1answer
31 views
how to display a image in django template using for loop
I am trying to display a image in the django template
html file
{% for imge in q_i %}
<img src="{{ MEDIA_URL }}/{{ imge.0 }}" width="80" height="80" />
{% endfor %}
view.py
#...#
Q_I = []
...
-5
votes
0answers
143 views
How do I start to learn programming? [closed]
I am eager to learn some sort of programming language. Does anyone have any suggestions for a programming language to begin with? Maybe some books to read? For the education I want I will have to at ...
0
votes
2answers
33 views
How to generate reports in different formats (HTML, text, etc.) based on Python? [closed]
From Python it is required to output a text report with multiple sections and contents such as simple paragraphs, lists, tables, etc. created from basic Python data structures.
Is there a ...
0
votes
1answer
32 views
Bash - change image urls to base64 in html
28I tried to make a script that's converting images source from normal links to base64 encoding in html files.
But there is a problem: sometimes, sed tells me
script.sh: line 25: /bin/sed: ...
1
vote
1answer
42 views
Embed html button in GTK3 app?
I'd like to embed a Yandex.Money "Donate" html button into my GTK3 (Python) app. Is it possible somehow?
This is the code of the button:
<iframe allowtransparency="true" ...
0
votes
1answer
14 views
BeautifulSoup - adding attribute to tag
Question for you here, I'm trying to add an attribute to a tag here, wondering if I can use a BeautifulSoup method, or should use plain string manipulation.
An example would probably make this clear, ...
1
vote
1answer
63 views
html submit comment to document
I am trying to add a comment form to my HTML test site, but i can not get the form to write the comments to a file.
<form action="/Users/kyle/server/comments.html" method="POST">
Your ...
1
vote
1answer
70 views
Python regex: remove certain HTML tags and the contents in them
If I have a string that contains this:
<p><span class=love><p>miracle</p>...</span></p><br>love</br>
And I want to remove the string:
<span ...
0
votes
1answer
24 views
Django show ManyToMany field of model using ModelChoiceField
I have a "parent" model containing different fields, and one of them is a ManyToMany field refering to another model (that in turn, has several fields).
I would like to display a ModelChoiceField ...
0
votes
3answers
71 views
Transform HTML table to JSON
I have a huge HTML Table (about 500,000 rows) that I need to transform into a JSON file.
The table looks something like this:
<table>
<tr>
<th>Id</th>
...