Optional: good to know Step 13 of 16 on the Python Developer roadmap

Timeouts and failures

Networks fail, especially on a weak mobile connection. Set a timeout, check the status code and handle errors so your program reports the problem instead of hanging forever.

More in APIs and JSON

See it on the Python Developer roadmap