网站分类API的Python客户端库。
项目描述
概述
Python语言的网站分类API客户端库。
最低Python版本为3.7。
安装
pip install website-categorization
示例
完整的API文档可在此处找到
创建新客户端
from websitecategorization import *
client = Client('Your API key')
发送基本请求
# Get categories for a domain name.
response = client.data('whoisxmlapi.com')
print("Responded? " + "Yes" if response.website_responded else "No")
if response.website_responded:
for cat in response.categories:
print("Cat: " + str(cat.name))
高级使用
额外的请求参数
# Specifying minimal level of confidence
response = client.data('whoisxmlapi.com', 0.75)
# Getting raw API response in XML
xml = client.raw_data('whoisxmlapi.com', output_format=Client.XML_FORMAT)
变更日志
1.1.2 (2023-11-30)
添加列表类别方法
最低Python版本现在为3.7
1.1.1 (2023-10-30)
迁移到网站分类API v3
1.0.0 (2021-07-08)
首次发布
项目详情
关闭
哈希值 for website_categorization-1.1.2-py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3feb03029b786770a0df1ceef09379ee00c2652cbfbce83dbecb84f70a97faf9 |
|
MD5 | ee687d54ed4e92835c3a99d70ad5752e |
|
BLAKE2b-256 | 465a9685f130981b1918ca4988d7c75ffaca0c704274ad3ab4a76a25955f0730 |