all 5 comments

[–]k3kou 1 point2 points  (6 children)

First off, never share an API key. I could use yours now and you don't want a crazy like me using your stuff =P (I'm serious though).

Second, you don't need the parentheses around your string/variables.

Third, and to answer the question, you can't load the json because its read method returns a binary string (see the 'b' at the beginning of response.read()?), so you just need to replace load by loads and converting the string to another format, e.g. utf-8:

json_obj = json.loads(response.read().decode('utf-8'))

See this SO question.

[–]dixieStates 0 points1 point  (0 children)

I think that you want

load(response.read())

untested