Skip to content

Instantly share code, notes, and snippets.

@dennisvandalen
Created July 11, 2017 12:36
Show Gist options
  • Save dennisvandalen/82e4aa028a8163fdc261b417b1873ac6 to your computer and use it in GitHub Desktop.
Save dennisvandalen/82e4aa028a8163fdc261b417b1873ac6 to your computer and use it in GitHub Desktop.
import urllib.request, json
with urllib.request.urlopen("https://api.coinmarketcap.com/v1/ticker/lisk/?convert=EUR") as url:
data = json.loads(url.read().decode())
print(data[0]['price_eur'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment