Created
August 20, 2014 03:24
-
-
Save vgmoose/7f9d5b43f22bfe540f57 to your computer and use it in GitHub Desktop.
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 json, urllib2, sys | |
with open("/usr/share/dict/words") as word_file: | |
english_words = set(word.strip().lower() for word in word_file) | |
def is_word(word): | |
return word.lower() in english_words | |
try: | |
since = sys.argv[1] | |
except: | |
since = 0 | |
while True: | |
response = urllib2.urlopen('https://api.github.com/repositories?since='+str(since)) | |
parsed = json.load(response) | |
for repo in parsed: | |
name = repo['name'] | |
lastid = str(repo['id']) | |
if is_word(name.encode('rot13')): | |
print lastid +": "+name | |
since = lastid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment