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.
-
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 ofgroupId/contestId
pairs to be scraped separated by,
.
-
Finally, run the scraper:
npm start