Python client library for Registrant Alert API.
Project description
Overview
The client library for Registrant Alert API in Python language.
The minimum Python version is 3.6.
Installation
pip install registrant-alert
Examples
Full API documentation available here
Create a new client
from registrantalert import *
client = Client('Your API key')
Make basic requests
# Get the number of domains.
terms = {
'include': ['blog']
}
result = client.preview(basic_terms=terms)
print(result.domains_count)
# Get raw API response
raw_result = client.raw_data(
basic_terms=terms,
response_format=Client.XML_FORMAT,
mode=Client.PREVIEW_MODE)
# Get a list of registered/dropped domains (up to 10,000)
result = client.purchase(
basic_terms=terms
)
Advanced usage
Extra request parameters
advanced_terms = [{
'field': Fields.registrant_contact_organization,
'term': 'Airbnb, Inc.',
'exactMatch': True
}]
since_date = datetime.date(2021, 8, 12)
result = client.purchase(
advanced_terms=advanced_terms,
since_date=since_date,
punycode=False)
Response model overview
Response:
- domains_count: int
- domains_list: [Domain]
- domain_name: str
- date: datetime.date
- action: str
Changelog
1.0.0 (2021-09-14)
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
registrant-alert-1.0.0.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for registrant_alert-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b5091153abfd4404b0b4eaa4462f5dc5eba9f8122245a44d8aa7b54ca4eb1f |
|
MD5 | 5ec356ff91130c22524d84a4abf4a274 |
|
BLAKE2b-256 | 1f47c3a52fea7ee569717ecfffbee0e9a1134f409013dfa0117083f53629b7b4 |