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):
|
||||
title = wikipediaUrl.replace('http://en.wikipedia.org/wiki/', '')
|
||||
url = "http://en.wikipedia.org/w/index.php?title=%s&action=edit" % title
|
||||
html = getUrlUnicode(url)
|
||||
data = decodeHtml(findRe(html, "<textarea.*?>(.*?)</textarea>"))
|
||||
url = "http://en.wikipedia.org/w/index.php?title=%s&action=raw" % title
|
||||
data = getUrlUnicode(url)
|
||||
return data
|
||||
|
||||
def getMovieData(wikipediaUrl):
|
||||
|
|
Loading…
Reference in a new issue