get wikitext directl

This commit is contained in:
j 2009-07-10 13:12:02 +02:00
parent 03af5a3de0
commit a9cec7dd33

View file

@ -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):