Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
.. image:: https://img.shields.io/badge/License-MIT-green.svg :alt: domain-discovery-py license :target: https://opensource.org/licenses/MIT
.. image:: https://img.shields.io/pypi/v/domain-discovery.svg :alt: domain-discovery-py release :target: https://pypi.org/project/domain-discovery
.. image:: https://github.com/whois-api-llc/domain-discovery-py/workflows/Build/badge.svg :alt: domain-discovery-py build :target: https://github.com/whois-api-llc/domain-discovery-py/actions
The client library for
Domains & Subdomains Discovery API <https://domains-subdomains-discovery.whoisxmlapi.com/>
_
in Python language.
The minimum Python version is 3.6.
.. code-block:: shell
pip install domain-discovery
Full API documentation available here <https://domains-subdomains-discovery.whoisxmlapi.com/api/documentation/making-requests>
_
.. code-block:: python
from domaindiscovery import *
client = Client('Your API key')
.. code-block:: python
terms = {
'include': ['example.*']
}
# Get the list of domains (up to 10,000)
result = client.get(domains=terms)
# Total count
print(result.domains_count)
.. code-block:: python
domain_terms = {
'include': ['blog.*'],
'exclude': ['*.com']
}
subdomain_terms = {
'include': ['*news*']
}
# Search for subdomains
result = client.get(subdomains=subdomain_terms)
# Search in subdomains of the required domain names
result = client.get(
domains=domain_terms,
subdomains=subdomain_terms)
.. code-block:: python
import datetime
terms = {
'include': ['blog.*'],
'exclude': ['*.com']
}
since_date = datetime.date(2021, 8, 12)
# Get raw response in XML and filter by date
raw_result = client.get_raw(
domains=terms,
output_format=Client.XML_FORMAT,
since_date=since_date)
.. code-block:: python
Response:
- domains_count: int
- domains_list: [str]
FAQs
Python client library for Domains & Subdomains Discovery API.
We found that domain-discovery 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.