Skip to content
/ PyGhDL Public

(Very) simple Python script to download separate folders in GitHub repositories

License

Notifications You must be signed in to change notification settings

8mnl/PyGhDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

(Very) simple Python script to download separate folders in GitHub repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages