Skip to content

Instantly share code, notes, and snippets.

@vgmoose
Created August 20, 2014 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgmoose/7f9d5b43f22bfe540f57 to your computer and use it in GitHub Desktop.
Save vgmoose/7f9d5b43f22bfe540f57 to your computer and use it in GitHub Desktop.
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