跳转到主要内容

Whois历史API的Python客户端库。

项目描述

Python语言编写的Whois历史API的客户端库。

最低Python版本为3.6。

安装

pip install whois-history

示例

完整API文档可在此处找到

创建新客户端

from whoishistory import ApiClient

client = ApiClient('Your API key')

进行基本请求

# Check how many records available. It doesn't deduct credits.
print(client.preview('whoisxmlapi.com'))

# Get actual list of records.
resp = client.purchase('whoisxmlapi.com')

for r in resp:
    print(r.registrar_name)

附加选项

您可以为这些方法指定搜索选项。

import datetime

d = datetime.date(2017, 1, 1)

print(client.preview('whoisxmlapi.com'),
      sinceDate=d,
      createdDateFrom=d,
      createdDateTo=d,
      updatedDateFrom=d,
      updatedDateTo=d,
      expiredDateFrom=d,
      expiredDateTo=d,
)

变更日志

1.0.0 (2020-05-01)

  • 首次发布

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源代码分布

whois-history-1.0.3.tar.gz (9.2 kB 查看哈希值)

上传于 来源

构建分发

whois_history-1.0.3-py2.py3-none-any.whl (8.6 kB 查看哈希)

上传于 Python 2 Python 3

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面