net/cache readUrl->read_url / Unicode -> unicode=True

format replace all CammelCase with under_score
This commit is contained in:
j 2012-08-14 15:58:05 +02:00
commit 2de989e188
33 changed files with 243 additions and 254 deletions

View file

@ -4,8 +4,8 @@
import re
from lxml.html import document_fromstring
from ox.cache import readUrlUnicode
from ox import findRe, stripTags
from ox.cache import read_url
from ox import findRe, strip_tags
from ox.web.imdb import ImdbCombined
@ -32,7 +32,7 @@ def getData(id, timeout=-1):
data = {
"url": getUrl(id),
}
html = readUrlUnicode(data['url'], timeout=timeout)
html = read_url(data['url'], timeout=timeout, timeout=True)
doc = document_fromstring(html)
props = {