用于下载存储库和gist的命令行工具
github-dl的Python项目详细描述
github dl是一个用于下载的轻量级命令行工具 来自`github.com<;http://github.com>;`\uuu的存储库和来自 `gist.github.com<;http://gist.github.com>;`\uu。github dl已经 在Python2.7.12和Python3.5.2上测试。
安装
该项目最近被添加到pypi中。如果有任何问题,请随时提交 通过下面的命令下载有任何问题…
pip install github-dl
安装(开发)
通过将项目下载为zip文件或克隆来安装项目 储存库。下载源代码后,运行以下命令 在项目的根目录中安装…
pip install -e .
用法
Github DL的功能目前相当有限,但是 支持功能
两个命令的用法
command line argument/option | functionality |
---|---|
^{tt1}$ | list arguments/options for tool |
^{tt2}$ | github username for credentials |
^{tt3}$ | github password for credentials |
^{tt4}$ | github token for credentials |
^{tt5}$ | directory to a configuration file |
特定于$ github-dl
的用法command line argument/option | functionality |
---|---|
^{tt7}$ | query for filtering github repositories |
^{tt8}$ | directory to download repositories to |
示例:
下载所有符合以下条件的机器学习相关笔记本: $ github-dl 'machine learning language:jupyter-notebooksize:<1000'github-notebooks--config=config.json
特定于$ gist-dl
的用法command line argument/option | functionality |
---|---|
^{tt11}$ | list of github users accounts to download gists |
^{tt8}$ | directory to download gists to |
^{tt13}$ | file extension to download ex: ipynb |
示例:
下载所有公用Jupyter笔记本: $ gist-dlgist-notebooks--config=config.json--extension=ipynb
下载特定用户的公用Jupyter笔记本: $ gist-dl cameres gist-notebooks--config=config.json--extension=ipynb