从codeforces.com中主持的任何竞赛下载任何问题/问题集
codeforces-dl的Python项目详细描述
啊!!! 注意:请安装competitive-dl而不是这个它比这个有更多的功能!!!
要求
- BeautifulSoup4
- $ pip install beautifulsoup4或
- $ sudo apt-get install python-beautifulsoup4
- pdfkit
- $ sudo pip install pdfkit
- wkhtmltopdf(此依赖项必须
手动安装
- $ sudo apt-get install wkhtmltopdf
安装
来源:
git clone https://github.com/shravan97/codeforces-dl.git
cd codeforces-dl
python setup.py
使用PIP:
sudo pip install codeforces-dl
用法
usage: codeforcesdl [-h][-contest CONTEST][-problem PROBLEM][-lang LANG][-dir DIR][-out OUT] optional arguments: -h, --help show this help message and exit -contest CONTEST contest id (For eg. 681,439 ..etc) -problem PROBLEM problem index (For eg. A,C ..etc) -lang LANG printing language -dir DIR path to the directory in which the output file has to be saved -out OUT your desired name for output file
示例用法
codeforcesdl -contest 682 -problem A -dir Demo -out my_fav_problem.pdf
codeforcesdl -contest 678 -dir Demo -out problems.pdf
(请检查Demo文件夹中的示例文档)
贡献
找到了对这个项目有用的东西?请放心 发出拉动请求:微笑:
贡献者
许可证
GNU通用公共许可v3(GPLV3)