cp.nvim/scrapers
Barrett Ruth b7ddf4c253
fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363)
## Problem

Scraper cookie handling was fragmented across per-platform files with no
shared access, httpx scrapers lacked `checking_login` fast paths on
login, and several re-auth edge cases (CodeChef submit, CF cookie guard,
AtCoder cookie persistence) caused unnecessary full re-logins or silent
failures.

## Solution

Centralize all cookie storage into a single `cookies.json` via helpers
in `base.py`. Add `checking_login` fast paths to `kattis.py` (using the
`x-username` response header as a session probe), `usaco.py`, and
`cses.py` login flows. Fix `kattis.py` submit to emit `checking_login`
only after loading cookies. Remove AtCoder cookie persistence from login
entirely — always do a fresh session. Harden CodeChef and CF reauth
with consistent status logging and cookie guard checks.
2026-03-07 16:10:51 -05:00
..
__init__.py lol 2025-09-24 21:23:06 -04:00
atcoder.py fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00
base.py fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00
codechef.py fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00
codeforces.py fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00
cses.py fix(scrapers): login fast paths and re-auth hardening for httpx platforms (#357) 2026-03-07 02:23:43 -05:00
kattis.py fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00
language_ids.py feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
models.py feat: race countdown support and language version selection (#346) 2026-03-06 18:18:21 -05:00
timeouts.py fix: codechef submit fixes and atcoder cleanup (#355) 2026-03-06 23:40:12 -05:00
usaco.py fix(scrapers): cookie fast paths, centralized storage, and reauth hardening (#363) 2026-03-07 16:10:51 -05:00