Created
December 14, 2014 13:50
-
-
Save munen/3e01337d1de80cbf3d83 to your computer and use it in GitHub Desktop.
Permutate a list of keywords and find free domains
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
lom-atelier | |
lom | |
malort | |
maltherapie | |
mal-therapie | |
kunsttherapie | |
kunst-therapie | |
begleitetes-malen | |
malatelier | |
mal-atelier | |
kunsttherapie-atelier | |
maltherapie-atelier |
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
# encoding: utf-8 | |
domains = File.open("clear_domains.txt") | |
for domain in domains.readlines() | |
domain = domain.strip | |
puts "#{domain}.info" if `whois #{domain}.info`.index("NOT FOUND") | |
puts "#{domain}.ch" if `whois #{domain}.ch` .index("We do not have") | |
puts "#{domain}.com" if `whois #{domain}.com` .index("No match for") | |
puts "#{domain}.net" if `whois #{domain}.net` .index("No match for") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment