Python Forum

Full Version: [split] Reading json from webpage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
#
# url is defined above.
#
jsonurl = urlopen(url)

#
# While trying to debug, I put this in:
#
print jsonurl

#
# Was hoping text would contain the actual json crap from the URL, but seems not...
#
text = json.loads(jsonurl)
print text
Please post minimal, complete and verifiable example. Post your code in python tags.
What is the output you get?