Python Error with Bitcoin
I'm trying to replicate what was done in this video: https://www.youtube.com/watch?v=cWf-WXaLFJ8
I think he is using a different version of python though because I'm getting errors. I have python 3.4
This is what I have so far:
I am now getting an error that says TypeError: the JSON object must be str, not 'HTTPResponse'
btcePrices = urllib.request.urlopen('https://btc-e.com/api/2/btc_usd/ticker')
btcejson = json.loads(btcePrices)
btcelastP = btcejson['ticker']['last']
btcelastT = btcejson['ticker']['updated']
anyone know how to fix this?