Skip to content

Instantly share code, notes, and snippets.

@citruspi
Created November 19, 2012 15:35
Show Gist options
  • Select an option

  • Save citruspi/4111298 to your computer and use it in GitHub Desktop.

Select an option

Save citruspi/4111298 to your computer and use it in GitHub Desktop.
Python .io Availability Checker
# 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