Note: This is Python 3, there is no urllib2. Also, I\'ve tried using json.loads(), and I get this error:
TypeError: can\'t use a string pattern on a bytes-
I'm not familiar with python 3 yet, but it seems like urllib.request.urlopen().read() returns a byte object rather than string.
urllib.request.urlopen().read()
byte
You might try to feed it into a StringIO object, or even do a str(response).
StringIO
str(response)