Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [split] Reading json from webpage
#1
#
# 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
Quote
#2
Please post minimal, complete and verifiable example. Post your code in python tags.
What is the output you get?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [split] script: remove all "carriage return" from my json variable pete 2 314 May-05-2020, 03:22 PM
Last Post: deanhystad
  Reading a json file ebolisa 2 388 Mar-15-2020, 09:24 AM
Last Post: ebolisa
  Split of key from JSON response aswini_dubey 1 449 Dec-04-2019, 06:54 PM
Last Post: Larz60+
  [split] Print JSON Dictionary to Excel? venukommu 1 487 Nov-15-2019, 09:33 PM
Last Post: micseydel
  Reading json behind a login page ebolisa 3 681 May-26-2019, 05:15 PM
Last Post: heiner55
  Reading JSON - error jmair 2 463 May-22-2019, 07:25 PM
Last Post: jmair
  [split] How to insert JSON into MSSQL gehrenfeld 3 932 Jan-27-2019, 06:20 PM
Last Post: micseydel
  Reading json from webpage jmair 4 1,290 Jan-10-2019, 09:14 PM
Last Post: jmair
  Reading complex JSON dictionaries Gromis 5 1,145 Jul-08-2018, 10:26 PM
Last Post: Gromis
  [split] Json to CSV satish 5 2,049 Jul-12-2017, 03:30 PM
Last Post: micseydel

Forum Jump:


Users browsing this thread: 1 Guest(s)