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",
15 # run a white true loop
17 wp_call = requests.get('https://en.wikipedia.org/w/api.php', params=parameters)
18 response = wp_call.json()
22 for page_id in response["query"]["pages"].keys():
23 page_title = response["query"]["pages"][page_id]["title"]
24 revisions = response["query"]["pages"][page_id]["revisions"]
27 print(page_title + "\t" + rev["user"] + "\t" + rev["timestamp"])
29 if 'continue' in response:
30 parameters.update(response['continue'])