()
| 177 | |
| 178 | |
| 179 | def browser_session() -> requests.Session: |
| 180 | cid = get_client_id() |
| 181 | if cid not in BROWSER_CLIENTS: |
| 182 | s = requests.Session() |
| 183 | s.headers.update({ |
| 184 | "User-Agent": "Mozilla/5.0 (Linux; Android 13; Mobile) AppleWebKit/537.36 Chrome/124 Safari/537.36", |
| 185 | "Accept-Language": "en-US,en;q=0.9", |
| 186 | "DNT": "1", |
| 187 | "Sec-GPC": "1", |
| 188 | "Upgrade-Insecure-Requests": "1", |
| 189 | }) |
| 190 | BROWSER_CLIENTS[cid] = s |
| 191 | return BROWSER_CLIENTS[cid] |
| 192 | |
| 193 | |
| 194 | def load_json(path: Path, default): |
no test coverage detected