(url: str, *, timeout: int = 30, headers: Optional[Dict[str, str]] = None)
| 41 | |
| 42 | |
| 43 | def fetch_json(url: str, *, timeout: int = 30, headers: Optional[Dict[str, str]] = None): |
| 44 | response = requests.get(url, timeout=timeout, headers=headers or {}) |
| 45 | response.raise_for_status() |
| 46 | return response.json() |
| 47 | |
| 48 | |
| 49 | def today_str() -> str: |