Skip to main content

Python client library for Subdomains Lookup API.

Project description

subdomains-lookup-py license subdomains-lookup-py release subdomains-lookup-py build

Overview

The client library for Subdomains Lookup API in Python language.

The minimum Python version is 3.6.

Installation

pip install subdomains-lookup

Examples

Full API documentation available here

Create a new client

from subdomainslookup import *

client = Client('Your API key')

Make basic requests

# Get categories for a domain name.
response = client.get('google.com')
for record in response.result.records:
    print("Domain: " + record.domain)

Advanced usage

Extra request parameters

# Get records count
print(response.result.count)

# Get raw API response in XML
xml_response = client.get_raw('google.com', output_format=Client.XML_FORMAT)

Response model overview

Response:
    - search: str
    - result: Result
        - count: int
        - records: [Record]
            - domain: str
            - first_seen: datetime.datetime
            - last_seen: datetime.datetime

Changelog

1.0.0 (2021-08-12)

  • 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

subdomains-lookup-1.0.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

subdomains_lookup-1.0.0-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

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