
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
.. image:: https://img.shields.io/badge/License-MIT-green.svg :alt: reverse-whois-py license :target: https://opensource.org/licenses/MIT
.. image:: https://img.shields.io/pypi/v/reverse-whois.svg :alt: reverse-whois-py release :target: https://pypi.org/project/reverse-whois
.. image:: https://github.com/whois-api-llc/reverse-whois-py/workflows/Build/badge.svg :alt: reverse-whois-py build :target: https://github.com/whois-api-llc/reverse-whois-py/actions
The client library for
Reverse Whois API <https://reverse-whois.whoisxmlapi.com/>
_
in Python language.
The minimum Python version is 3.6.
.. code-block:: shell
pip install reverse-whois
Full API documentation available here <https://reverse-whois.whoisxmlapi.com/api/documentation/making-requests>
_
.. code-block:: python
from reversewhois import *
client = Client('Your API key')
.. code-block:: python
# 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 list of registered/dropped domains (up to 10,000)
result = client.purchase(
basic_terms=terms
)
Extra request parameters
.. code-block:: python
advanced_terms = [{
'field': Fields.domain_name,
'term': "whoisxmlapi.*"
}]
updated_date = datetime.date(2020, 1, 1)
result = client.purchase(
advanced_terms=advanced_terms,
updated_date_from=updated_date,
include_audit_dates=True,
punycode=False)
#Next page
response = client.purchase(
basic_terms=terms
)
if response.has_next():
next_page = client.next_page(
current_page=response,
basic_terms=terms
)
#Iterating
for page in client.iterate_pages(basic_terms=terms):
print(page)
FAQs
Python client library for Reverse Whois API.
We found that reverse-whois demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.