Python client library for Reverse IP/DNS API.
Project description
Overview
The client library for Reverse IP/DNS API in Python language.
The minimum Python version is 3.6.
Installation
pip install reverse-ip
Examples
Full API documentation available here
Create a new client
from reverseip import * client = Client('Your API key')
Make basic requests
# Get parsed records as a model instance. result = client.data('8.8.8.8') print(result.size) for record in result.result: print("Domain: {}, visited: {}".format( record.name, record.last_visit)) # Get raw API response resp_str = client.raw_data('1.1.1.1')
Advanced usage
Pagination
for response in client.iterate_over('1.1.1.1'): # Working with the current page print(response.size) for record in response.result: print(record.name) # Alternative way try: response = client.data('1.1.1.1') # processing # ... while response.has_next: response = client.next_page('1.1.1.1', response) # processing # ... except ReverseIpApiError as error: print(error.message)
Get raw data in XML
raw = client.raw_data('1.1.1.1', output_format='xml') print(raw)
Changelog
1.1.0 (2021-04-22)
Minor fixes
UnparsableApiResponse error class was renamed to UnparsableApiResponseError
1.0.1 (2021-04-21)
README update.
1.0.0 (2021-04-20)
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
reverse-ip-1.1.0.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file reverse-ip-1.1.0.tar.gz
.
File metadata
- Download URL: reverse-ip-1.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67fc35d95e947b843ba6e68d1021df30214d07c34d4e4d12bb0b1d428560452e |
|
MD5 | b23ec36613a1e2e55d55f2b250b4b15f |
|
BLAKE2b-256 | 6e0908b031395fbbd2a34a2ae40b6cd05bdf2b0ff67831fd2d8f1fd5e491502a |
File details
Details for the file reverse_ip-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: reverse_ip-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ad95699346934925d99ef531e03a049f1c9c9434ccba5fb70584de2364c9f6 |
|
MD5 | 21a16f5fd497101a096f3d7daedfa582 |
|
BLAKE2b-256 | ffc20db391645aa845a0b521f8b425868cc68260155299a8ae47c601eb2b5bda |