Created
December 1, 2016 18:16
-
-
Save Zeerg/9de283331a34048c27383f28cae5db8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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