net/cache readUrl->read_url / Unicode -> unicode=True
format replace all CammelCase with under_score
This commit is contained in:
parent
c1d0fc6242
commit
2de989e188
33 changed files with 243 additions and 254 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue