Getting Data with requests
The requests package sends a program's request to a web API with requests.get, a User-Agent header and a timeout, and gives back a response whose status_code says how it went and whose json() turns the answer into dictionaries and lists, which for the National Weather Service takes two steps, the point's forecast address and then the forecast.
Updated

- Category
- Python
- Level
- Apprentice
- Tags
- Endpoint (rest-api), GET, Header (rest-api), python, requests, rest-api, User-Agent, web-development