readUrl
This commit is contained in:
parent
d82353a186
commit
0d2bd1b962
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def getData(id):
|
||||||
try:
|
try:
|
||||||
html = readUrlUnicode(data["url"])
|
html = readUrlUnicode(data["url"])
|
||||||
except:
|
except:
|
||||||
html = ox.cache.getUrl(data["url"])
|
html = ox.cache.readUrl(data["url"])
|
||||||
data["number"] = findRe(html, "<p class=\"spinenumber\">(.*?)</p>")
|
data["number"] = findRe(html, "<p class=\"spinenumber\">(.*?)</p>")
|
||||||
data["title"] = findRe(html, "<meta property=['\"]og:title['\"] content=['\"](.*?)['\"]")
|
data["title"] = findRe(html, "<meta property=['\"]og:title['\"] content=['\"](.*?)['\"]")
|
||||||
data["director"] = findRe(html, "<h2 class=\"director\">(.*?)</h2>")
|
data["director"] = findRe(html, "<h2 class=\"director\">(.*?)</h2>")
|
||||||
|
|
Loading…
Reference in a new issue