Tagged Questions
1
vote
2answers
16 views
lxml moves text with element
I have an issue with wrapping image with a div.
from lxml.html import fromstring
from lxml import etree
tree = fromstring('<img src="/img.png"/> some text')
div = etree.Element('div')
...
4
votes
2answers
42 views
Parsing html data into python list for manipulation
I am trying to read in html websites and extract their data. For example, I would like to read in the EPS (earnings per share) for the past 5 years of companies. Basically, I can read it in and can ...
-9
votes
0answers
46 views
Need to use python program as a .exe of a website [on hold]
I have developed a simple python program using tkinter, which i want to use as a .exe off an html website as a pop-up.
I don't want to build the entire website using Django, so only html and css.
...
0
votes
0answers
38 views
Dynamic dropdownlists in django using javascript
I am trying to populate a dropdownlist with the result of the execution of an .exe program. The .exe will return a concatenation of items, separated by special characters. This will in turn be ...
0
votes
1answer
19 views
Scrap HTML tables in Python
I am trying to scrap one or two HTML tables on a webpage. But I do not know how to do that if there are 6 or more tables on one page. The link below is the web I gonna analyze. Could somebody give me ...
1
vote
1answer
31 views
Can't use {{MEDIA_URL}} in Django Flatpages?
A rather simple question which I will elaborate on if needed in order to solve the problem.
I attempted to use a simple call to {{ MEDIA_URL }} in order to show an image on an About Us Django ...
0
votes
1answer
21 views
Beautiful Soup, gets warning and then error halfway through code
I am iterating through every wikipedia page that deals with a date (january 1, january 2, ...., december 31). On each page, I am taking out the names of people who have a birthday on that day. ...
0
votes
1answer
37 views
trying to make a checkbox cause a redirect using javascript
I have a Django app in which I'm trying to have some checkboxes in one of my pages redirect to a view that does some operations in my databse (toggling the boolean column that corresponds to the ...
0
votes
2answers
41 views
Scraping dynamic information of stock data using Python
I am trying to use Python to scrap dynamic stock information from a Chinese website :
http://vip.stock.finance.sina.com.cn/mkt/#cyb_root
However, I am a newer to Python. So can someone give me a ...
1
vote
4answers
35 views
html get request “you didn't select a category”
I'm new to http and in need of help. I'm trying to fill out a search form in craigslist so that I can get the link to the page I would have normally gotten if I had filled out the form manually. By ...
0
votes
1answer
23 views
How do you get values from html and set them in the view for example if you wanted to create a new table row in Django?
This is my current Html i would like to grab the rootname and the currentplatform from my root table and create a new row on my log table using the root name.
<div id="container">
...
1
vote
1answer
37 views
How to extract such text from javascript sentences in a html file by python
I'm new to web-scraping coding. I'm using python to parse the html files and the package I'm using is BeautifulSoup. Now I want to extract the certain numbers like the 1 in ...
0
votes
1answer
37 views
Python-Regex-Distinguish and use repeated pattern in a string
Edit: so I came to realize, with the kind help from answers below, that parsing html with regex is generally a bad idea. For what it's worth, if someone else comes across my post someday with the same ...
0
votes
1answer
26 views
Scrapy rule SgmlLinkExtractor not working
how can I get my rule to work in my crawlspider and to follow the links, I added this rule but its not working, nothing gets display but i don't get no error either. I comment out what my domains ...
1
vote
1answer
60 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 ...