wikipedia is always utf-8
This commit is contained in:
parent
f1718e4af1
commit
01c0b7ecc5
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ def getUrlByAllmovieId(allmovieId):
|
||||||
def getWikiData(wikipediaUrl):
|
def getWikiData(wikipediaUrl):
|
||||||
url = wikipediaUrl.replace('wikipedia.org/wiki/', 'wikipedia.org/w/index.php?title=')
|
url = wikipediaUrl.replace('wikipedia.org/wiki/', 'wikipedia.org/w/index.php?title=')
|
||||||
url = "%s&action=raw" % url
|
url = "%s&action=raw" % url
|
||||||
data = readUrlUnicode(url)
|
data = readUrl(url).decode('utf-8')
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def getMovieData(wikipediaUrl):
|
def getMovieData(wikipediaUrl):
|
||||||
|
|
Loading…
Reference in a new issue