Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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