Created
November 19, 2012 15:35
-
-
Save citruspi/4111298 to your computer and use it in GitHub Desktop.
Python .io Availability Checker
This file contains hidden or 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
| # This requires pywhois - https://github.com/unpluggd/pywhois/tree/master/pywhois | |
| import pywhois | |
| from itertools import product | |
| from string import ascii_lowercase | |
| length = 3 | |
| domains = [''.join(i) for i in product(ascii_lowercase, repeat = length)] | |
| print 'Available:' | |
| for d in domains: | |
| if not pywhois.whois(d+'.io'): | |
| print d + ".io is available | |
| print 'Done!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment