fix import

This commit is contained in:
j 2012-09-09 18:48:40 +02:00
parent 764db8556b
commit fcae567823
2 changed files with 2 additions and 2 deletions

2
README
View file

@ -1,7 +1,7 @@
python-ox - the web in a dict python-ox - the web in a dict
Depends: Depends:
python2.5 python >= 2.6
python-chardet (http://chardet.feedparser.org/) python-chardet (http://chardet.feedparser.org/)
python-feedparser (http://www.feedparser.org/) python-feedparser (http://www.feedparser.org/)
python-lxml (http://codespeak.net/lxml/) [optional] python-lxml (http://codespeak.net/lxml/) [optional]

View file

@ -32,7 +32,7 @@ def get_data(id, timeout=-1):
data = { data = {
"url": get_url(id), "url": get_url(id),
} }
html = read_url(data['url'], timeout=timeout, timeout=True) html = read_url(data['url'], timeout=timeout, unicode=True)
doc = document_fromstring(html) doc = document_fromstring(html)
props = { props = {