The Wayback Machine - https://web.archive.org/web/20201226093451/https://github.com/JustinAzoff/python-cymruwhois
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

This client still works, but relying on a 3rd party service has downsides for reliability and performance reasons. I've started a new project called asnlookup to allow one to perform lookups locally or to operate a similar service on their own infrastructure. If autonomy and 160,000 queries/second interests you, check it out.


Perform lookups by ip address and return ASN, Country Code, and Netblock Owner::

>>> import socket
>>> ip = socket.gethostbyname("www.google.com")
>>> from cymruwhois import Client
>>> c=Client()
>>> r=c.lookup(ip)
>>> print r.asn
15169
>>> print r.owner
GOOGLE - Google Inc.

See http://packages.python.org/cymruwhois/ for full documentation.

About

Python client for the whois.cymru.com service

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.