Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.47 KB

README.MD

File metadata and controls

32 lines (27 loc) · 1.47 KB

Harvest

The codeforces submissions scraper is a powerful tool that scrapes all your accepted submissions from Codeforces using web scraping, and automatically downloads the solution codes for you.

Installation

git clone https://github.com/krishx17/harvest

Dependency

npm install

How to use

  • First configure options.json file according to your needs
  • Then run the tool as follows.
node main.js
  • Search all submitted source code and download source code.
  • options.json
option Description
codeforcesHandle Your codeforces handle (username). Leave empty "" if you dont want it.
onlyAC true if you only want the accepted codes, else false. Beneficial to set it to true
overwrite true if you want to overwrite codes when they are already present in the export directory, else false. It will be beneficial to set it to false,because if you run node main.js again, files will not be overwritten unnecessarily .
giveUniqueNames true if you only want all the codes of the same problem, else false. When set to true different codes of the same problem will be differentiated using their unique Ids. It will be beneficial to set it to false,because generally we are concerned with any one code .