cp.nvim/scrapers
Barrett Ruth f5992fa9b5
fix(codechef): consistent submit logging and robust reauth handling
Problem: submit always emitted \`submitting\` before confirming session
validity, causing a spurious log when cookies were stale. PRACTICE
fallback retries incorrectly re-authenticated (reusing \`_retried\` flag
for two distinct retry reasons). Login modal on stale-cookie submit was
not detected as an auth failure.

Solution: proactively fetch \`/\` and run the login JS check before
emitting \`submitting\`. Introduce \`_practice\` flag separate from
\`_retried\` so PRACTICE fallback retries reuse the existing session.
Detect login modal dialog text as \`needs_relogin\`. Set \`logged_in=True\`
after successful in-submit login so cookies are saved for fallback retries.
2026-03-07 03:46:43 -05:00
..
__init__.py lol 2025-09-24 21:23:06 -04:00
atcoder.py fix: codechef submit fixes and atcoder cleanup (#355) 2026-03-06 23:40:12 -05:00
base.py refactor(scrapers): centralize cookie storage into shared file 2026-03-07 03:46:28 -05:00
codechef.py fix(codechef): consistent submit logging and robust reauth handling 2026-03-07 03:46:43 -05:00
codeforces.py refactor(scrapers): centralize cookie storage into shared file 2026-03-07 03:46:28 -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 refactor(scrapers): centralize cookie storage into shared file 2026-03-07 03:46:28 -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 refactor(scrapers): centralize cookie storage into shared file 2026-03-07 03:46:28 -05:00