Skip to main content

Python client library for Domains & Subdomains Discovery API.

Project description

domain-discovery-py license domain-discovery-py release domain-discovery-py build

Overview

The client library for Domains & Subdomains Discovery API in Python language.

The minimum Python version is 3.6.

Installation

pip install domain-discovery

Examples

Full API documentation available here

Create a new client

from domaindiscovery import *

client = Client('Your API key')

Domains

terms = {
    'include': ['example.*']
}

# Get the list of domains (up to 10,000)
result = client.get(domains=terms)

# Total count
print(result.domains_count)

Subdomains

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)

Extras

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)

Response model overview

Response:
    - domains_count: int
    - domains_list: [str]

Changelog

1.0.0 (2021-11-19)

  • First release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

domain-discovery-1.0.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

domain_discovery-1.0.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file domain-discovery-1.0.0.tar.gz.

File metadata

  • Download URL: domain-discovery-1.0.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for domain-discovery-1.0.0.tar.gz
Algorithm Hash digest
SHA256 edfa67c9798b63bd805594808d0867dcf642f0dfa8408f92ca101877d6c73946
MD5 72917540a7ef6b24576fcf5fdd711008
BLAKE2b-256 9eb1d5990443b89071f496ea3d7963b72a7577ca3016e6f1bd3f439cecb5f1ff

See more details on using hashes here.

File details

Details for the file domain_discovery-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: domain_discovery-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for domain_discovery-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 124265cd762d57befd7355623616e72d87753c81292e4436c073f2d80ee41c99
MD5 1603affd1ed37e96d6f2aebf6c011b04
BLAKE2b-256 efedd9d4e59722519478fa767b30d08ec0e0d85c5f7bc4b38507210269d11c70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page