Skip to content

Instantly share code, notes, and snippets.

@Zeerg
Created December 1, 2016 18:16
Show Gist options
  • Save Zeerg/9de283331a34048c27383f28cae5db8f to your computer and use it in GitHub Desktop.
Save Zeerg/9de283331a34048c27383f28cae5db8f to your computer and use it in GitHub Desktop.
import json
import urllib2
bitcoinurl = "http://api.coindesk.com/v1/bpi/currentprice/allcurrencies.json?showex=1&calc=1"
openurl = urllib2.urlopen(bitcoinurl)
result = json.load(openurl)
print "Current Bitcon Price Is :", result['bpi']['USD']['rate']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment