Get WHOIS information for a given domain.
Project description
All Whois
A Python package for retrieving WHOIS information of domains.
Description/Features
- Python wrapper for Linux "
whois" command - Get
parsed&rawWHOIS data for a given domain - Extract data for
anyTLD. - No TLD regex's
- Date's as
datetime objectsorstrings - Caching of results
Requirements
- Python 3.6+
Support for python 3.6+ only. Works on macos & linux only
Issues
If there is something that is not parsing well, open a issue, and i will look into it. Or if you fixed it, do make a pull request, and i can merge it.
Installation
pip install allwhois
Pre-requisite installation
- macOS
brew install whois
- Linux
apt install whois
Usage
import sys
from allwhois import whois
from pprint import pprint
if __name__ == "__main__":
domain = None
try:
domain = sys.argv[1]
except:
exit(f"Usage: {sys.argv[0]} <domain_name>")
response = whois.query(domain)
pprint(response)
Authors:
- Sriram: marirs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file allwhois-1.0.0.tar.gz.
File metadata
- Download URL: allwhois-1.0.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6f63426ba7f0d5b7a310f067195de8d0b6f09b318a656fc424f934ca1eb41a5
|
|
| MD5 |
ebe52d9b61d71714326778e95a9c3e3d
|
|
| BLAKE2b-256 |
a41bc85e6d4cabea224d75c3dcc1be53c90224e881a2f287f1dd098e1bcaa9fc
|
File details
Details for the file allwhois-1.0.0-py3-none-any.whl.
File metadata
- Download URL: allwhois-1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7202aa31db33129259be79034445d128de2b8e9be5b828a9af33d208ce383f3
|
|
| MD5 |
1498ad5390e0371ba2da5ae64602765e
|
|
| BLAKE2b-256 |
f5d32ff2cba61f296551c5409fdc4d7776355e2fb44ed4998146365cbcf30042
|