Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Wannacry btc balance
import urllib2
import json
addr = [ "12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw",
total = 0;
for i in range(len(addr)):
url = '' + addr[i] + '?format=json'
response = urllib2.urlopen(url)
html =
jdata = json.loads(html)
print (addr[i] + ":" + str(jdata['final_balance'] / 1e8))
total += jdata['final_balance']
print (str(total / 1e8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment