2 Prints the rev_id and hash of the 10 oldest edits in recent_changes.
8 sys.path.insert(0, os.path.abspath(os.getcwd()))
13 api_session = api.Session("https://en.wikipedia.org/w/api.php")
15 changes = api_session.recent_changes.query(
17 properties={'ids', 'sha1', 'timestamp'},
22 for change in changes:
24 "{0} ({1}) @ {2}: {3}".format(
28 change.get('sha1', "")