Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     async with aiohttp.ClientSession(headers=headers) as session:
  2.         max_change_count = -1
  3.         resp_json = None
  4.         for i, params_ in enumerate(params):
  5.             async with session.get(diff_endpoint, params=params_) as response:
  6.                 if response.status == 200:
  7.                     json_response = await response.json()
  8.                     change_count = json_response.get('change_count', -1)
  9.                     if change_count > max_change_count:
  10.                         max_change_count = change_count
  11.                         resp_json = json_response
  12.  
  13.                 print(response.url)
  14.             print(f'{i} / len(params)')
  15.         print(max_change_count)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top