I successfully use pythonwhois (installed with pip install ... ) to check for 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):
But:
- it's a bit slow (average 2 requests per second)
- Will I be blacklisted by the
whois server if I make 26 * 26 * 26 ~ 17000 requests?
(I check availability of ???mail.com with ? a..z )
Question: is there a better way to check availability than to make one whois request per domain?
Edit: the task was completed in 9572 seconds, and here is the complete list of all available domains of the form ???mail.com , since November 2017, if anyone is interested in starting the email service!
python domain-name whois
Basj
source share