Codeforces-Solutions-Downloader
is a tool that solves various algorithmic problems in Codeforces and automatically downloads the accepted solution codes. This tool uses your handle to search and analyze the source code in Codeforces. If the source code does not exist in your local repository, save the source code file according to the directory name format and source name format options. If you want to push the source code to Github, recommend Codeforces-AutoCommit
$ git clone https://github.com/ISKU/Codeforces-Solutions-Downloader
Dependency
$ pip3 install requests
$ pip3 install bs4
- Run the tool as follows.
$ python3 main.py
- Search all submitted source code and analyze the correct source code.
- If there are multiple correct source codes, select the last submitted source code.
- Options:
option | Description |
---|---|
handle | Input your Codeforces handle (username) |
mkdir | Decide if you want to create a directory when you save the source code. (false: directory name option is ignored.) |
directory name | Set the name of the directory where the source code is saved. |
source name | Set the name of the source code file. |
💡 [CONTEST]: If the content contains [CONTEST], it is replaced by contest_id.
💡 [INDEX]: If the content contains [INDEX], it is replaced by problem_index.
💡 [TITLE]: If the content contains [TITLE], it is replaced by problem_title.
- Minho Kim (ISKU)
- http://codeforces.com/profile/isku
- E-mail: minho.kim093@gmail.com