4 # ?action=query&prop=revisions&titles=Python_(programming_language)&rvlimit=100&rvprop=timestamp|user&format=json')
6 # parameter version which makes a little more sense
7 parameters = {'action' : 'query',
9 'titles' : 'Python (programming language)',
11 'rvprop' : "timestamp|user",
16 wp_call = requests.get('https://en.wikipedia.org/w/api.php', params=parameters)
17 response = wp_call.json()
21 for page_id in response["query"]["pages"].keys():
22 page_title = response["query"]["pages"][page_id]["title"]
23 revisions = response["query"]["pages"][page_id]["revisions"]
26 print(page_title + "\t" + rev["user"] + "\t" + rev["timestamp"])
28 if 'continue' in response:
29 parameters.update(response['continue'])