https://github.com/whois-api-llc/reverse-dns-py
Reverse DNS API client library for Python
https://github.com/whois-api-llc/reverse-dns-py
dns python reverse-dns whoisxmlapi
Last synced: 8 months ago
JSON representation
Reverse DNS API client library for Python
- Host: GitHub
- URL: https://github.com/whois-api-llc/reverse-dns-py
- Owner: whois-api-llc
- License: mit
- Created: 2021-12-09T13:02:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T01:34:04.000Z (about 3 years ago)
- Last Synced: 2025-02-27T08:00:19.784Z (over 1 year ago)
- Topics: dns, python, reverse-dns, whoisxmlapi
- Language: Python
- Homepage: https://reverse-dns.whoisxmlapi.com/
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
.. image:: https://img.shields.io/badge/License-MIT-green.svg
:alt: reverse-dns-py license
:target: https://opensource.org/licenses/MIT
.. image:: https://img.shields.io/pypi/v/reverse-dns.svg
:alt: reverse-dns-py release
:target: https://pypi.org/project/reverse-dns
.. image:: https://github.com/whois-api-llc/reverse-dns-py/workflows/Build/badge.svg
:alt: reverse-dns-py build
:target: https://github.com/whois-api-llc/reverse-dns-py/actions
========
Overview
========
The client library for
`Reverse DNS API `_
in Python language.
The minimum Python version is 3.6.
Installation
============
.. code-block:: shell
pip install reverse-dns
Examples
========
Full API documentation available `here `_
Create a new client
-------------------
.. code-block:: python
from reversedns import *
client = Client('Your API key')
Make basic requests
-------------------
.. code-block:: python
terms = [{
'field': 'domain',
'term': 'foo*'
}]
# Get DNS records for matching domains (up to 1000)
result = client.get(terms=terms, record_type=Client.TXT)
# Total count
print(result.size)
Extras
-------------------
.. code-block:: python
terms = [
{
'field': 'domain',
'term': 'blog*'
},
{
'field': 'value',
'term': 'foo*',
'exclude': True
}
]
# Exclude specified records for matching domains and get raw XML response
raw_result = client.get_raw(
terms=terms,
record_type=Client.CNAME,
limit=2,
output_format=Client.XML_FORMAT)
Response model overview
-----------------------
.. code-block:: python
Response:
- result: [Record]
- value: str
- name: str
- first_seen: str
- last_vist: str
- size: int