Skip to content

Instantly share code, notes, and snippets.

@marcoscastro
marcoscastro / btc_usd.py
Created February 15, 2017 09:53
Python - Monitoramento do preço do bitcoin em dólares
'''
Get Bitcoin Value
http://api.coindesk.com/v1/bpi/currentprice.json
'''
import urllib.request, json, time
def obter_valor():
try:
url = "http://api.coindesk.com/v1/bpi/currentprice.json"