Skip to content

Instantly share code, notes, and snippets.

@nickodell
Created December 2, 2012 07:09
Show Gist options
  • Save nickodell/4187550 to your computer and use it in GitHub Desktop.
Save nickodell/4187550 to your computer and use it in GitHub Desktop.
import urllib2
import json
url = "http://blockchain.info/charts/n-transactions?format=json"
page = urllib2.urlopen(url).read()
data = json.loads(page)['values']
data = map(lambda point: point['y'], data)
print int(sum(data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment