Makes a list of a Github users stars or public repositories as clonable git url's
Requires "PyGithub"
pip install PyGithub
python githoard.py -u githubUser -m method -t githubToken -o output
-m
takes eitherstars
orrepos
, defaults torepos
- Github tokens can be personal tokens
- Github token (
-t
) can be passed in as a ENVGITHUB_TOKEN
- Output (
-o
) is optional, will print to stdout if omitted
python githoard.py -u stankye -m stars -t githubToken -o ./stars.txt
python githoard.py -u stankye -m repos -t githubToken
python githoard.py -u stankye -m stars
python githoard.py -u stankye
I personally use this to backup Github repos in bulk as well as track what repos are removed overtime
This is a slightly cleaner (ever so slightly) version of a quick script I made a few years back (https://gist.github.com/Stankye/ddc2d90627465134ef515af770f007ea)