Python client library for Brand Alert API.
Project description
Overview
The client library for Brand Alert API in Python language.
The minimum Python version is 3.6.
Installation
pip install brand-alert
Examples
Full API documentation available here
Create a new client
from brandalert import *
client = Client('Your API key')
Make basic requests
# Get the number of domains.
result = client.preview(['google'])
print(result.domains_count)
# Get raw API response
raw_result = client.raw_data(
['google'],
response_format=Client.XML_FORMAT,
mode=Client.PREVIEW_MODE)
# Get list of recently registered/dropped domains (up to 10,000)
result = client.purchase(['google'])
Advanced usage
Extra request parameters
today = datetime.date.today()
delta = datetime.timedelta(days=10)
result = client.purchase(
['google'],
exclude_terms=['blog'],
since_date=today - delta,
with_typos=True,
punycode=False)
raw_result = client.raw_data(
['google'],
exclude_terms=['blog'],
since_date=today - delta,
with_typos=True,
punycode=False,
mode=Client.PURCHASE_MODE,
response_format=Client.JSON_FORMAT)
Changelog
1.0.0 (2021-05-04)
First release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
brand-alert-1.0.0.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for brand_alert-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3972defacde773765dc5557514c442a6b99d44a0cd5204b60de5897ad22da63 |
|
MD5 | 68382bc04a2f97cb341b8862d04465e1 |
|
BLAKE2b-256 | fa1b9bf3b41a89125e21b2fcfe2b7a877e3514461b5fa5e0297252a54edb46de |