I'm using successfully pythonwhois (installed with pip install ...) to check the availability of .com domains:
import pythonwhois
for domain in ['aaa.com', 'bbb.com', ...]:
details = pythonwhois.get_whois(domain)
if 'No match for' in str(details): # simple but it works!
print domain
But:
- it is a little bit slow (2 requests per second on average)
- won't I be blacklisted by the
whoisserver if I do 26*26*26 ~ 17000 requests?
(I'm testing availability of???mail.comwith?beinga..z)
Question: is there a better way to check availability than doing one whois request per domain?
Edit: The job finished in 9572 seconds, and here is the full list of all domains available of the form ???mail.com, as of November 2017, if anyone is interested to start an email service!