4 url_base = 'https://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=%s&rvlimit=100&rvprop=timestamp|user&continue=&format=json'
6 pages = ["Benjamin Mako Hill", "Python", "Data science"]
8 for page_title in pages:
10 wp_call = requests.get(url_base % page_title)
11 response = wp_call.json()
13 for page_id in response["query"]["pages"].keys():
14 page_title = response["query"]["pages"][page_id]["title"]
15 revisions = response["query"]["pages"][page_id]["revisions"]
18 print(page_title + "\t" + rev["user"] + "\t" + rev["timestamp"])