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