feat: additional platforms (LeetCode, USACO, Kattis) #262
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#262
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
cp.nvim supports AtCoder, CodeChef, Codeforces, and CSES. Notable omissions:
These have significant user populations that currently cannot use cp.nvim.
Proposed solution
Add scraper implementations under
scrapers/following the existingBaseScraperinterface:https://leetcode.com/graphql) —questionDataquery returns title, content,exampleTestcaseList, and time/memory limits. Requires session cookie for authenticated endpoints; contest problems require timing check.usaco.org/index.php?page=viewproblem2&cpid=<id>. Sample I/O is in<pre>blocks. No auth required for samples.open.kattis.com/problems/<id>— samples in zip download at<id>/file/statement/samples.zip. Auth optional (open problems are public).Each platform requires adding to
constants.PLATFORMSand wiring up the scraper. No Lua changes are needed beyond the constants.Alternatives considered
Recommending Competitive Companion (issue #255) as the universal solution. That is the right long-term answer, but having native scrapers for these platforms provides a better UX since no browser extension is required.