Skip to content

Instantly share code, notes, and snippets.

@ralphbean
Created March 13, 2012 03:24
Show Gist options
  • Select an option

  • Save ralphbean/2026418 to your computer and use it in GitHub Desktop.

Select an option

Save ralphbean/2026418 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import github2.client
ghc = github2.client.Github()
all_repos, page = [], 0
while True:
new_repos = ghc.repos.list('toscawidgets', page)
if not new_repos:
break
all_repos.extend(new_repos)
page += 1
names = [repo.name for repo in all_repos]
names = list(set(names))
for name in names:
if 'tw2' in name:
print "git clone [email protected]:toscawidgets/%s.git;" % name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment