Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.08 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.08 KB

PyGhDL

is a (very) simple One-File-Python3-Script used to download separate folders inside existing GitHub repositories, based on this script from GitHub gist.

Very simple means:

  • It's one purpose only - it downloads folders inside repos
  • No tests
  • No error checks
  • (Almost) no usage checks

It's a one file script with a one line command and thus requires thinking along.

Usage

Edit your GitHub Token (required to bypass the request limit):

token = "YOUR_TOKEN_HERE"

Install requirements.txt (PyGithub) - Note: PyGhDL uses PyGithub 1.58.2 - Newer versions might differ in terms of API authentication

pip install -r requirements.txt

Run the script:

python pyghdl.py <LINK>

Example

python pyghdl.py https://github.com/hakluke/how-to-exit-vim/tree/master/assets

License

GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007