跳转到主要内容

Subdomains Lookup API的Python客户端库。

项目描述

subdomains-lookup-py license subdomains-lookup-py release subdomains-lookup-py build

概述

Python语言中的Subdomains Lookup API客户端库。

最低Python版本为3.6。

安装

pip install subdomains-lookup

示例

完整的API文档可在此处找到

创建新客户端

from subdomainslookup import *

client = Client('Your API key')

进行基本请求

# Get categories for a domain name.
response = client.get('google.com')
for record in response.result.records:
    print("Domain: " + record.domain)

高级用法

额外请求参数

# Get records count
print(response.result.count)

# Get raw API response in XML
xml_response = client.get_raw('google.com', output_format=Client.XML_FORMAT)

响应模型概述

Response:
    - search: str
    - result: Result
        - count: int
        - records: [Record]
            - domain: str
            - first_seen: datetime.datetime
            - last_seen: datetime.datetime

变更日志

1.0.0 (2021-08-12)

  • 首次发布

项目详情


下载文件

下载适合您平台的应用程序。如果您不确定选择哪一个,请了解有关安装包的更多信息。

源代码分发

subdomains-lookup-1.0.0.tar.gz (8.9 kB 查看哈希值)

上传时间 源码

构建分发版

subdomains_lookup-1.0.0-py3-none-any.whl (9.7 kB 查看哈希值)

上传时间 Python 3

由以下支持

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页面