Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
/ stavdeti-api Public archive

Scraper for contest.stavdeti.ru contest system

License

Notifications You must be signed in to change notification settings

deytenit/stavdeti-api

Repository files navigation

stavdeti-api | npm version

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

About

Scraper for contest.stavdeti.ru contest system

Topics

Resources

License

Stars

Watchers

Forks