get wikitext directl
This commit is contained in:
parent
03af5a3de0
commit
a9cec7dd33
1 changed files with 2 additions and 3 deletions
|
@ -38,9 +38,8 @@ def getUrlByAllmovieId(allmovieId):
|
||||||
|
|
||||||
def getWikiData(wikipediaUrl):
|
def getWikiData(wikipediaUrl):
|
||||||
title = wikipediaUrl.replace('http://en.wikipedia.org/wiki/', '')
|
title = wikipediaUrl.replace('http://en.wikipedia.org/wiki/', '')
|
||||||
url = "http://en.wikipedia.org/w/index.php?title=%s&action=edit" % title
|
url = "http://en.wikipedia.org/w/index.php?title=%s&action=raw" % title
|
||||||
html = getUrlUnicode(url)
|
data = getUrlUnicode(url)
|
||||||
data = decodeHtml(findRe(html, "<textarea.*?>(.*?)</textarea>"))
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def getMovieData(wikipediaUrl):
|
def getMovieData(wikipediaUrl):
|
||||||
|
|
Loading…
Reference in a new issue