Exporting starred Github repos

Software

I’m getting closer to exporting all my data from Github to a self-hosted system. My gists are now all in my lunchbox which will be easy to move in one swoop. Then I remembered all the repos I’d starred over the years.

Jeff Carpenter’s export-stars Python script does a great job of exporting your stars to CSV, which is easily parsed by everything. It’s now also my last starred repository which I kinda like.

Install the PyGithub dependency, then all you need to do is supply your username:

$ pip3 install PyGithub
$ GH_USER=$YourUsername python3 export_stars.py > stars.csv

I’m not sure what’s the best way to present this list, but for now it’s gone into the lunchbox too.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!