Skip to content

Instantly share code, notes, and snippets.

@evanradcliffe
Forked from beefy/username.py
Created June 2, 2016 16:02
Show Gist options
  • Save evanradcliffe/4792316e1bf10f01d16be7c31fe96468 to your computer and use it in GitHub Desktop.
Save evanradcliffe/4792316e1bf10f01d16be7c31fe96468 to your computer and use it in GitHub Desktop.
a script to help find a github username
#!/usr/bin/env python2.7
import urllib2
for line in open('/usr/share/dict/cracklib-small','rb'):
try:
urllib2.urlopen('https://github.com/'+line.replace('\n',''))
except urllib2.HTTPError as e:
if e.code == 404:
print line.replace('\n','')
else:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment