scientific-programming-exer.../exam/ex01/url.py

4 lines
161 B
Python
Raw Permalink Normal View History

2019-02-02 10:18:57 +00:00
2019-02-19 13:15:28 +00:00
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)