Commit graph

11 commits

Author SHA1 Message Date
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
51504b0121
fix: flake config; 2026-02-17 21:10:29 -05:00
c8c0da6d61 fix(ci): format 2026-01-27 12:27:09 -05:00
944d37dc75 fix(git): ignore node_modules 2025-12-04 18:10:22 -05:00
Barrett Ruth
9cc2b52111 c;eanup 2025-11-28 00:28:21 -05:00
352f98f26f fix: open problem-specific url 2025-10-15 11:00:31 -04:00
8bfbf9937f fix(ci): unused vars 2025-09-18 23:51:59 -04:00
a24d50843a fix: imports 2025-09-18 20:12:01 -04:00
4e58d320bb fix: update docs, no more vim.g 2025-09-14 01:53:22 -05:00
d80b11e565 fix: no claude files 2025-09-12 17:35:53 -05:00
dcb7debff6 initial commit 2025-09-11 23:52:32 -05:00