feat(login): add checking_login fast path to httpx scrapers (kattis, usaco) #362
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim#362
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Browser scrapers (CF, AtCoder, CodeChef) now emit a
checking_loginstatus when valid cookies exist, letting the user see a fast path vs. a full re-login. httpx scrapers (Kattis, USACO) always emitlogging_inon the login subcommand regardless of whether cookies exist, making their output inconsistent with browser scrapers.Solution
Add a cookie fast path to
kattis.pyandusaco.pylogin: if cookies exist, verify the session with a lightweight authenticated request, emitchecking_loginon success, and only fall through tologging_in+ full re-auth on failure. All scrapers should produce identical status event sequences for equivalent scenarios.