从codeforces.com中主持的任何竞赛下载任何问题/问题集

codeforces-dl的Python项目详细描述


https://travis-ci.org/shravan97/codeforces-dl.svg?branch=masterCode Health

啊!!! 注意:请安装competitive-dl而不是这个它比这个有更多的功能!!!

说明

Codeforces-dl允许您下载特定的问题/问题集 脱机练习的codeforces.comPDF文件
Inspired bytopcoder-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

通过下载zip/tar文件

您还可以从here下载zip/tar文件,然后将内容解压缩到文件夹并运行

python setup.py

用法

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)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java创建猜谜游戏程序   JavaWebSocketContainer。connectToServer似乎挂起了   如何在java中中断函数   java c#socket client multiple BeginSend()未到达服务器   不可见的组件然后在Java中的窗格之间切换   java在应用程序类中使用静态接口安全吗?   java等待函数完成,直到回调到来   使用DataOutputStream时的java新行,Android   java服务对象的定义是什么?   基于视图的javahibernate复合密钥   java将varchar连接到char在JPA(oracle)中不起作用   如何在java中通过point类读取多个点?