Skip to content

Instantly share code, notes, and snippets.

@tschuy
Created August 13, 2015 17:04
Show Gist options
  • Save tschuy/9649159021e8668a8c6f to your computer and use it in GitHub Desktop.
Save tschuy/9649159021e8668a8c6f to your computer and use it in GitHub Desktop.
A quick script that shows you all of the repos where you've been involved with issues
import urllib, json, time
items = []
x = 0
while True:
x += 1
print x
url = "https://api.github.com/search/issues?q=involves:tschuy&sort=created&order=desc?client_id=xxx&client_secret=yyyy&page=" + str(x+1)
response = urllib.urlopen(url);
data = json.loads(response.read())
if data.get('message'):
break
items += data['items']
time.sleep(5)
projects = { u['url'].rsplit('/', 4)[1] + '/' + u['url'].rsplit('/', 4)[2] for u in items }
for project in projects:
print project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment