Python package for retrieving WHOIS information of domains.
Project description
whois
A Python package for retrieving WHOIS information of domains.
Features
Python wrapper for Linux “whois” command
Simple interface to access parsed WHOIS data for a given domain
Able to extract data for all the popular TLDs (com, org, net, biz, info, pl, jp, uk, nz, …)
Query a WHOIS server directly instead of going through an intermediate web service like many others do
Works with Python 2.4+ and Python 3.x
All dates as datetime objects
Possibility to cache results
Help Wanted
You contributions are welcome , look for the Help wanted tag https://github.com/DannyCork/python-whois/labels/help%20wanted
Usage example
Install whois package from your distribution (e.g apt install whois)
$pip install whois
>>> import whois
>>> domain = whois.query('google.com')
>>> print(domain.__dict__)
{
'expiration_date': datetime.datetime(2020, 9, 14, 0, 0),
'last_updated': datetime.datetime(2011, 7, 20, 0, 0),
'registrar': 'MARKMONITOR INC.',
'name': 'google.com',
'creation_date': datetime.datetime(1997, 9, 15, 0, 0)
}
>>> print(domain.name) google.com
>>> print(domain.expiration_date) 2020-09-14 00:00:00
ccTLD & TLD support
ccTLD - uz - ac.uk - ar - at - be - br - ca - co - co.jp - com.au - cl - cn - cz - de - eu - fr - it - ir - jp - kr - lv - lt - mx - nz - pl - ru - uk - us - mx - br - sh - id - tv - cc - nyc - pw - рф (xn–p1ai) - in - ua - co.za - by
TLD - download - biz - edu - education - com - download - info - me - mobi - name - net - ninja - nyc - online - org - io - xyz - tel - online - wiki - press - pharmacy - rest - security - site - space - store - tech - tel - theatre - tickets - video - website - club - work - bank - ca - mu - rw
Issues
Raise an issue https://github.com/DannyCork/python-whois/issues/new
Support
Python 3.x supported. Should work on Python 2.x but not supported.
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
File details
Details for the file whois-0.9.8.tar.gz.
File metadata
- Download URL: whois-0.9.8.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3219318d02437a5086649f03e7013291be9e5063a7b5e9db4621b32f503a6f0
|
|
| MD5 |
de3e6d836d964c5b8cf53ad0db6bf21a
|
|
| BLAKE2b-256 |
4c7127fe2e3125acc26637d1f8063fd33e678f7dac10727afea118f52c744826
|