Skip to content

Glossary: Python Beyond the Basics

requests

Also written: requests.get, raise_for_status, RequestException, timeout, params

A popular third-party package for talking to websites. `requests.get(url, params=..., timeout=...)` fetches data, `.json()` converts it, `raise_for_status()` turns bad status codes into errors, and `RequestException` covers network problems.

Where the book teaches it

Related terms

HTTP status codesAPI (application programming interface)JSON (JavaScript Object Notation)httpx