Skip to content

Instantly share code, notes, and snippets.

@arnuschky
arnuschky / xmr2btc-prices.py
Created April 13, 2015 18:34
Script that displays prices for XMR->BTC
import sys
import json
import urllib2
def jsonApiCall(url):
try:
req = urllib2.Request(url, headers={'User-Agent' : "Magic Browser"})
con = urllib2.urlopen(req)
data = json.load(con)
except Exception as e: