Created
October 10, 2022 14:56
-
-
Save michaeldorner/f3fb9ffacc0e192db60781a4ca2a8499 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
api_url = 'review.gerrithub.io' # or, for example, 'android-review.googlesource.com' | |
test_pages = [1, 100, 1000, 10000] | |
changes = [] | |
for page in test_pages: | |
response = requests.get(f'https://{api_url}/changes/?o=MESSAGES&o=DETAILED_ACCOUNTS', timeout=10*60, params={'S': 0}) | |
changes += json.loads(response.text[len("]}\\\'\n"):]) | |
sorted([change['updated'] for change in changes]) # all of them are updated in 2022-10-03 or later |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment