Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bulk-whois-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulk-whois-api

Python client library for Bulk Whois API.

  • 1.1.1
  • PyPI
  • Socket score

Maintainers
1

.. image:: https://img.shields.io/badge/License-MIT-green.svg :alt: bulk-whois-api-py license :target: https://opensource.org/licenses/MIT

.. image:: https://img.shields.io/pypi/v/bulk-whois-api.svg :alt: bulk-whois-api-py release :target: https://pypi.org/project/bulk-whois-api

.. image:: https://github.com/whois-api-llc/bulk-whois-api-py/workflows/Build/badge.svg :alt: bulk-whois-api-py build :target: https://github.com/whois-api-llc/bulk-whois-api-py/actions

======== Overview

The client library for Bulk Whois API <https://whois.whoisxmlapi.com/bulk-api>_ in Python language.

The minimum Python version is 3.7.

Installation

.. code-block:: shell

pip install bulk-whois-api

Examples

Full API documentation available here <https://whois.whoisxmlapi.com/bulk-api/documentation/making-requests>_

Create a new client

.. code-block:: python

from bulkwhoisapi import *

client = Client('Your API key')

Create bulk request

.. code-block:: python

domains = [
    'example.com',
    'example.org'
]

result = client.create_request(domains=domains)

# Used for further requests
request_id = result.request_id

Get Whois records

.. code-block:: python

result = client.get_records(
    request_id=request_id,
    max_records=len(domains)
)

# Finished once result.records_left == 0
print(result)

List your requests

.. code-block:: python

result = client.get_requests()

Download CSV result

.. code-block:: python

client.download(filename='records.csv', request_id=request_id)

Extras

.. code-block:: python

# Paginate over processed records and get results in XML
result = client.get_records_raw(
    request_id=request_id,
    max_records=1,
    start_index=2,
    output_format=Client.XML_FORMAT
)

Response model overview

.. code-block:: python

ResponseCreate:
    - request_id: str
    - invalid_domains: [str]

ResponseRecords:
    - no_data_available: bool
    - request_id: str
    - total_records: int
    - records_left: int
    - records_processed: int
    - domain_list: [str]
    - whois_records: [BulkWhoisRecord]

ResponseRequests:
    - user_requests: [BulkRequest]

Changelog

1.1.1 (2023-07-31)

  • Bump whois-api

1.1.0 (2023-07-31)

  • Bump requests & whois-api
  • Drop Python 3.6 support

1.0.0 (2022-01-15)

  • First release

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc