Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whois-api-llc/subdomains-lookup-py
Subdomains Lookup API client library for Python
https://github.com/whois-api-llc/subdomains-lookup-py
python subdomain subdomain-enumeration subdomain-finder subdomain-list subdomain-scanner whoisxmlapi
Last synced: 2 months ago
JSON representation
Subdomains Lookup API client library for Python
- Host: GitHub
- URL: https://github.com/whois-api-llc/subdomains-lookup-py
- Owner: whois-api-llc
- License: mit
- Created: 2021-08-13T09:00:34.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T01:27:36.000Z (over 1 year ago)
- Last Synced: 2024-11-05T12:22:01.406Z (3 months ago)
- Topics: python, subdomain, subdomain-enumeration, subdomain-finder, subdomain-list, subdomain-scanner, whoisxmlapi
- Language: Python
- Homepage: https://subdomains.whoisxmlapi.com/api
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://img.shields.io/badge/License-MIT-green.svg
:alt: subdomains-lookup-py license
:target: https://opensource.org/licenses/MIT.. image:: https://img.shields.io/pypi/v/subdomains-lookup.svg
:alt: subdomains-lookup-py release
:target: https://pypi.org/project/subdomains-lookup.. image:: https://github.com/whois-api-llc/subdomains-lookup-py/workflows/Build/badge.svg
:alt: subdomains-lookup-py build
:target: https://github.com/whois-api-llc/subdomains-lookup-py/actions========
Overview
========The client library for
`Subdomains Lookup API `_
in Python language.The minimum Python version is 3.6.
Installation
============.. code-block:: shell
pip install subdomains-lookup
Examples
========Full API documentation available `here `_
Create a new client
-------------------.. code-block:: python
from subdomainslookup import *
client = Client('Your API key')
Make basic requests
-------------------.. code-block:: python
# 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
.. code-block:: python
# 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
.. code-block:: python
Response:
- search: str
- result: Result
- count: int
- records: [Record]
- domain: str
- first_seen: datetime.datetime
- last_seen: datetime.datetime