Skip to content

Instantly share code, notes, and snippets.

@michaeldorner
Created October 10, 2022 14:56
Show Gist options
  • Save michaeldorner/f3fb9ffacc0e192db60781a4ca2a8499 to your computer and use it in GitHub Desktop.
Save michaeldorner/f3fb9ffacc0e192db60781a4ca2a8499 to your computer and use it in GitHub Desktop.
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