Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Created December 8, 2017 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvas0004/c3fd44c9063273eccbd4c91170878ea8 to your computer and use it in GitHub Desktop.
Save dvas0004/c3fd44c9063273eccbd4c91170878ea8 to your computer and use it in GitHub Desktop.
for bucket in res['transactions']['buckets']:
key1 = bucket['key']
for innerbucket1 in bucket['BySourceAddress']:
key2 = innerbucket1['key']
for innerbucket2 in innerbucket1['buckets']:
key3 = innerbucket2['key']
for innerbucket3 in innerbucket2['buckets']:
key4 = innerbucket3['key']
print "({},{}.{},{})".format(key1,key2,key3,key4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment