import urllib
proxies = {'http': ''}
>>> checkURL = ""
>>> filehandle = urllib.urlopen(checkURL, proxies=proxies)
>>> result = filehandle.read()
>>> print result
200
hichina.com
211 : Domain name is not available
>>> checkURL = ""
>>> filehandle = urllib.urlopen(checkURL, proxies=proxies)
>>> result = filehandle.read()
>>> print result;
200
verydaddy.com
210 : Domain name is available
阅读(1688) | 评论(0) | 转发(0) |