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

4 lines
161 B
Python

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)