Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeRoor reading json
#1
Hi,
I’m trying to read a json url however I’ve got this error:
“TypeError: list indices must be integers or slices, not str”

This is de json url: https://servicios.ine.es/wstempus/js/es/...tip=AM&
and the idea is see it in jupyter notebook as a table with this columns
“Año”, “Municipio”, “De 0 a 4 años”, “De 5 a 9 años”, “De 10 a 14 años”, etc, but I can’t do it
Any idea or help?

Thank you
Reply


Messages In This Thread
TypeRoor reading json - by GreenLynx - May-16-2023, 08:54 AM
RE: TypeRoor reading json - by buran - May-16-2023, 08:58 AM
RE: TypeRoor reading json - by GreenLynx - May-16-2023, 01:33 PM
RE: TypeRoor reading json - by buran - May-16-2023, 01:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Data from JSON tpolim008 2 1,138 Sep-27-2022, 06:34 PM
Last Post: Larz60+
  Initializing, reading and updating a large JSON file medatib531 0 1,819 Mar-10-2022, 07:58 PM
Last Post: medatib531
  Help with reading json file hhchenfx 5 4,562 Jul-07-2021, 01:58 PM
Last Post: hhchenfx
  reading json file DrBrownStats 1 1,851 Nov-25-2020, 09:00 AM
Last Post: Larz60+
  Reading a json file ebolisa 2 2,203 Mar-15-2020, 09:24 AM
Last Post: ebolisa
  Reading json behind a login page ebolisa 3 2,485 May-26-2019, 05:15 PM
Last Post: heiner55
  Reading JSON - error jmair 2 2,270 May-22-2019, 07:25 PM
Last Post: jmair
  [split] Reading json from webpage rajesh1997 1 2,234 Feb-05-2019, 12:07 PM
Last Post: buran
  Reading json from webpage jmair 4 4,105 Jan-10-2019, 09:14 PM
Last Post: jmair
  Reading complex JSON dictionaries Gromis 5 3,894 Jul-08-2018, 10:26 PM
Last Post: Gromis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020