批量扫描域名是否被注册
通过 api 接口 http://panda.www.net.cn/cgi-bin/check.cgi?area_domain= 查询域名状态
(注意:不要盯着这一个接口坑,小心干翻别人的接口,小心自己被封IP)
浏览器访问 http://panda.www.net.cn/cgi-bin/check.cgi?area_domain=itdhz.com ,得到下面内容
<?xml version="1.0" encoding="gb2312"?>
<property>
<returncode>200</returncode>
<key>itdhz.com</key>
<original>211 : Domain exists</original>
</property>
返回内容中,状态为 211 表示域名已经被注册, 状态为 210 表示域名可以注册。
[root@itdhz ~]# python register_domain.py &
后台运行程序,然后当前目录会生成 domain_enable.txt 文件,文件中记录可以注册的5位字母的域名。
[root@itdhz ~]# tail -f domain_enable.txt
bhuuv.com
bhuuw.com
bhuux.com
bhuuy.com
bhuuz.com
bhuvb.com
bhuvc.com
bhuvd.com
bhuvf.com
网络上很多免费的代理,大家也可以添加代码不停的切换代理去请求这个接口,以避免被源站封杀。
知道的代理有这么几家,大家可以用试试
http://www.xicidaili.com/ # 西刺代理
http://www.kuaidaili.com/ # 快代理
http://ip.zdaye.com/ # 站大爷
http://www.xdaili.cn/ # 讯代理
http://www.swei360.com/ # 360代理
http://www.mayidaili.com/ # 蚂蚁代理
http://www.ip3366.net/ # 云代理
http://www.dailiyun.com/ # 代理云
http://www.89ip.cn/ # 流年免费代理