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