cp.nvim/scrapers
Barrett Ruth c963728fe9 refactor(submit): pass file path instead of source via stdin
Problem: Submit read the source file in Lua, piped the full content as
stdin through to Python, then re-encoded it into an in-memory buffer
just to hand it back to the browser's file input. Unnecessary roundtrip
for AtCoder; CF also gains nothing from Lua owning the read.

Solution: Pass `source_file` path as a CLI arg to the scraper instead
of reading it in Lua and streaming via stdin. AtCoder calls
`page.set_input_files(file_path)` directly. Codeforces reads the file
with `Path(file_path).read_text()` before the browser session. Also
saves the buffer with `vim.cmd.update()` before submitting.
2026-03-05 11:26:29 -05:00
..
__init__.py lol 2025-09-24 21:23:06 -04:00
atcoder.py refactor(submit): pass file path instead of source via stdin 2026-03-05 11:26:29 -05:00
base.py refactor(submit): pass file path instead of source via stdin 2026-03-05 11:26:29 -05:00
codechef.py feat(codeforces): implement submit; cache CSES token (#300) 2026-03-05 10:37:39 -05:00
codeforces.py refactor(submit): pass file path instead of source via stdin 2026-03-05 11:26:29 -05:00
cses.py feat(codeforces): implement submit; cache CSES token (#300) 2026-03-05 10:37:39 -05:00
kattis.py feat(codeforces): implement submit; cache CSES token (#300) 2026-03-05 10:37:39 -05:00
language_ids.py feat(atcoder): extract submit helpers; add live status notifications (#294) 2026-03-04 19:27:29 -05:00
models.py feat(scraper): add precision extraction, start_time, and submit support 2026-03-03 15:09:41 -05:00
timeouts.py feat(codeforces): implement submit; cache CSES token (#300) 2026-03-05 10:37:39 -05:00
usaco.py feat(codeforces): implement submit; cache CSES token (#300) 2026-03-05 10:37:39 -05:00