Page MenuHomeDevCentral

Get the list of the repositories for a GitHub organization
Open, NormalPublic


We need a script to output the list of repositories a specific organization have on GitHub. That would help to clone them all, which is required by code indexers services.

Etsy Hound would be happy with URL like:


Event Timeline

dereckson created this task.Dec 3 2015, 13:58
dereckson raised the priority of this task from to Normal.
dereckson updated the task description. (Show Details)
dereckson added subscribers: xcombelle, dereckson.
xcombelle claimed this task.Dec 3 2015, 14:01

That should be easy done with the github api. No problem to do it in python3 ?

Yup, Python 3 is totally fine.

API url noted by xcombelle on IRC:$org/repos?page=$page, pages starting at 1, ending at ...

jq selection: jq .[].<property> where property could be clone_url, full_name or name.

Working example

$ curl '' | jq '.[].name'