Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async with aiohttp.ClientSession(headers=headers) as session:
- max_change_count = -1
- resp_json = None
- for i, params_ in enumerate(params):
- async with session.get(diff_endpoint, params=params_) as response:
- if response.status == 200:
- json_response = await response.json()
- change_count = json_response.get('change_count', -1)
- if change_count > max_change_count:
- max_change_count = change_count
- resp_json = json_response
- print(response.url)
- print(f'{i} / len(params)')
- print(max_change_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement