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.examplefile and rename it to.env. -
Update the values of the
.envfiles as follow:MONGO_URIis the MongoDB URI connection URI.CONTESTSis a list ofgroupId/contestIdpairs to be scraped separated by,.
-
Finally, run the scraper:
npm start