當我tryed使用pywhois檢查域可用性: import pywhois
try:
w = pywhois.whois('domain_name')
message='Domain is available'
except:
message='Domain is not available'
,但我得到這個錯誤: easy_install pywho
我使用此代碼檢查域可用性域可用性: try:
w = pywhois.whois('honarasai.com')
if not w:
message='Domain is available'
except:
message='Domain is taken'
它返回這樣的結果: creation_date: ['11-jun-2012'] dom