【发布时间】:2023-04-02 14:35:02
【问题描述】:
我想在 whois 域上做一个 python 程序。
我想获取每天在whois域中注册的信息。
寻找有一个whois library。
但是好像不能搜索每天获得的域名。
有没有办法在每天注册域名时获取它们?
如果有人知道可以教我。
代码示例信息域
import whois
w = whois.whois('https://qiita.com/')
print(w)
输出
{
"domain_name": [
"QIITA.COM",
"qiita.com"
],
"registrar": "Amazon Registrar, Inc.",
"whois_server": "whois.registrar.amazon.com",
"referral_url": null,
"updated_date": [
"2021-06-13 23:21:43",
"2021-06-13 23:21:44.397000"
],
"creation_date": "2011-07-18 11:47:04",
"expiration_date": "2022-07-18 11:47:04",
"name_servers": [
"NS-1049.AWSDNS-03.ORG",
"NS-171.AWSDNS-21.COM",
"NS-1956.AWSDNS-52.CO.UK",
"NS-772.AWSDNS-32.NET",
"ns-1049.awsdns-03.org",
"ns-171.awsdns-21.com",
"ns-1956.awsdns-52.co.uk",
"ns-772.awsdns-32.net"
],
"status": [
"clientTransferProhibited https://icann.org/epp#clientTransferProhibited",
"renewPeriod https://icann.org/epp#renewPeriod"
],
"emails": [
"abuse@amazonaws.com",
"owner-10471934@qiita.com.whoisprivacyservice.org",
"admin-10471934@qiita.com.whoisprivacyservice.org",
"tech-10471934@qiita.com.whoisprivacyservice.org"
],
"dnssec": "unsigned",
"name": "On behalf of qiita.com owner",
"org": "Whois Privacy Service",
"address": "P.O. Box 81226",
"city": "Seattle",
"state": "WA",
"zipcode": "98108-1226",
"country": "US"
}
输出“创建日期”中显示的是否有一种方法可以搜索今天的注册域?
【问题讨论】:
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:通过python获取注册域名 - Python技术站