Overview
The client library for Website Categorization API in Python language.
The minimum Python version is 3.7.
Installation
pip install website-categorization
Examples
Full API documentation available here
Create a new client
from websitecategorization import *
client = Client('Your API key')
Make basic requests
# 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))
Advanced usage
Extra request parameters
# 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)
Changelog
1.1.2 (2023-11-30)
Add list categories method
Minimum Python version is now 3.7
1.1.1 (2023-10-30)
Migrate to Website Categorization API v3
1.0.0 (2021-07-08)
First release
Metadata
Release files for website-categorization 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| website_categorization-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / website_categorization-1.1.2-py3-none-any.whl
| Download URL | website_categorization-1.1.2-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3feb03029b786770a0df1ceef09379ee00c2652cbfbce83dbecb84f70a97faf9
|
|
BLAKE2b-256 checksum How to use checksums |
465a9685f130981b1918ca4988d7c75ffaca0c704274ad3ab4a76a25955f0730
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for website-categorization 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.