Coder Social home page Coder Social logo

seanmarpo / python-whois Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mboot-github/python-whois

0.0 0.0 0.0 175 KB

Python module/library for retrieving WHOIS information of domains ๐Ÿ’ปโค

License: Do What The F*ck You Want To Public License

Python 100.00%

python-whois's Introduction

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

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.

python-whois's People

Contributors

dannycork avatar unggulzmalqp avatar anak10thn avatar mrbitsdcf avatar stylesuxx avatar stypr avatar ep-hamster avatar riszkymf avatar qistoph avatar nickmasster avatar mgargiullo avatar bochecha avatar psckiwi avatar arvidsnet avatar xanish avatar wrkzdev avatar sinaxin avatar beppojs avatar nfarhadian avatar kluzas avatar jfranciscomn avatar freast avatar tim232 avatar thepiratewhosmellsofsunflowers avatar seanmarpo avatar mariusmez avatar jbuet avatar jamesduffy avatar iivanoo avatar ih-cs6300 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.