Created
March 15, 2014 16:26
-
-
Save promediacorp/9569959 to your computer and use it in GitHub Desktop.
Uses a combined words list to find available domain names.
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
#bulk domain name checker by available domain naimes | |
import whois | |
import os, sys | |
#from makewords import list_generated_words, MakeWords | |
from combinewords import list_combined_words | |
int_num_letters = int(sys.argv[1]) | |
num_words = int(sys.argv[2]) | |
#MakeWords(int_num_letters,num_words) | |
domain_list = [] | |
def AddTLD(list_combined_words, str_tld): | |
for word in list_combined_words: | |
domain_list.append(word + str_tld) | |
def CheckDomainAvailable(domain_list): | |
i = 0 | |
for domain in domain_list: | |
i += 1 | |
try: | |
domain_record = whois.whois(domain) | |
except Exception, R: | |
print i, domain | |
fo = open("norecord.txt", "a") | |
fo.write(domain+'\n') | |
fo.close() | |
# print (str(R)[203:219]) | |
AddTLD(list_combined_words, '.com') | |
CheckDomainAvailable(domain_list) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment