Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion export_stars/export_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def config_retry(backoff_factor=1.0, total=8):
def parse_args():
parser = ArgumentParser(description="export a GitHub user's starred repositorys to CSV")
parser.add_argument("--user")
parser.add_argument("--github-token")
parser.add_argument("--token")
parser.add_argument("--dest")
return parser.parse_args()


Expand Down
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
This script exports a GitHub user's starred repositories (URL & description) to a CSV file.

Usage: `GH_USER=defunkt python3 export_stars.py > stars.csv`
Usage: `python export_stars.py --user=GH_USER --token=TOKEN > stars.csv`

To generate the token, go to Settings > Advanced Settings > Personal access tokens (classic). Limit its scope to `public_repo`.

Thanks to the authors of [PyGitHub](https://github.com/PyGithub/PyGithub) for the slick client library.