-
-
Save evanradcliffe/4792316e1bf10f01d16be7c31fe96468 to your computer and use it in GitHub Desktop.
a script to help find a github username
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
#!/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