【发布时间】:2017-11-21 16:32:22
【问题描述】:
我正在成功使用pythonwhois(与pip install ...一起安装)来检查.com域的可用性:
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
但是:
- 有点慢(平均每秒 2 个请求)
- 如果我执行 26*26*26 ~ 17000 个请求,我不会被
whois服务器列入黑名单吗?
(我正在测试???mail.com的可用性,?是a..z)
问题:有没有比每个域执行一个whois 请求更好的方法来检查可用性?
编辑:截至 2017 年 11 月,这项工作在 9572 秒内完成,所有可用域中的 here is the full list 格式为 ???mail.com,如果有人有兴趣启动电子邮件服务!
【问题讨论】:
标签: python domain-name whois