2.0.6 • Published 3 months ago
stavdeti-api v2.0.6
stavdeti-api |
Scraper for contest.stavdeti.ru contest system.
!NOTE No further development planned.
It would be nice for some kind of API next time.
What is it about?
Simple scraper to retrieve contest scoreboards from the website stated abobe. I used it once and never after.
Single exported method contest(id)
returns an object of following structure:
Contest: {
| id: Contest ID.
| title: Contest title.
| amount: Amount of tasks in contest.
|
| contestants: {
| | rank: Position in leader board.
| | user: Username of contestant.
| | solved: Amount of AC tasks.
| | penalty: Sum penalties of all tasks.
| |
| | tasks: {
| | | status: "AC" | "WA" | "NS".
| | | attempts: Amount of submissions.
| | | penalty: Penalty for the task.
| | }[];
| }[];
}
!TIP index.ts contains all of the type definitions.
It was intented to make one specific task
(by using regexes).
Licence
This project source code is licenced under the MIT Licence