Python Forum
[split] Reading json from webpage - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: [split] Reading json from webpage (/thread-15890.html)



[split] Reading json from webpage - rajesh1997 - Feb-05-2019

#
# 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


RE: [split] Reading json from webpage - buran - Feb-05-2019

Please post minimal, complete and verifiable example. Post your code in python tags.
What is the output you get?