added support for different languages
This commit is contained in:
parent
21c3d3aa64
commit
a933d441ce
|
@ -1,3 +1,3 @@
|
|||
|
||||
def construct_url(title):
|
||||
return "https://en.wikipedia.org/w/api.php?action=query&prop=links&pllimit=500&titles={}&format=json".format(title)
|
||||
def construct_url(title, lang="en"):
|
||||
return "https://{}.wikipedia.org/w/api.php?action=query&prop=links&pllimit=500&titles={}&format=json".format(lang, title)
|
||||
|
|
Loading…
Reference in New Issue
Block a user