Skip to content

Our behind the scenes script that fetches the submissions from codeforces 🤖

Notifications You must be signed in to change notification settings

icpc-scu-community/board-scraper

Repository files navigation

Board Scraper

.github/workflows/build.yml

Motivation

ICPC training communites create codefroces groups for their communites, and usually they make sheets of problems in form of contests. The main goal of this scraper is to scrape, parse, and save contests and submissions of these groups to be easily accessible by the board API.

Examples of codeforces groups

Usage

  • Clone this repository.

  • Install the dependencies and build the files:

    npm i
    npm run build
  • Copy .env.example file and rename it to .env.

  • Update the values of the .env files as follow:

    • MONGO_URI is the MongoDB URI connection URI.
    • CONTESTS is a list of groupId/contestId pairs to be scraped separated by ,.
  • Finally, run the scraper:

    npm start