2 回答

TA貢獻(xiàn)1806條經(jīng)驗(yàn) 獲得超8個(gè)贊
我找不到whois.whois,但這對(duì)我有用;
import whois, pandas
domain = whois.query('sportswithamission.com')
dic = domain.__dict__
df = pandas.DataFrame.from_dict(dic, orient='index')
輸出;
0
name sportswithamission.com
registrar GoDaddy.com, LLC
creation_date 2020-03-27 11:26:20
expiration_date 2021-03-27 11:26:20
last_updated None
status clientDeleteProhibited https://icann.org/epp#c...
name_servers {ns12.domaincontrol.com, ns11.domaincontrol.com}

TA貢獻(xiàn)1873條經(jīng)驗(yàn) 獲得超9個(gè)贊
這個(gè)也有效:
df = pd.DataFrame([d2.keys(), d2.values()]).T
添加回答
舉報(bào)