Last answered:

10 Dec 2020

Posted on:

06 Dec 2020

0

New Course! Web Scraping and API Fundamentals in Python

keep getting error when i run response.json(), type(response.json()) its completely giving error message  
1 answers ( 0 marked as helpful)
Instructor
Posted on:

10 Dec 2020

0
Hi!

The error is probably raised because the response is not in a JSON format. Thus, the ".json()" method cannot decode it properly. Try printing response.content(), for example, to see what the actual data is.
Best,
365 Team

Submit an answer