Created
August 13, 2015 17:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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