usage: querycontacts [-h] [--provider PROVIDER] [--version] ip

QueryContact - Find the Abuse contact for a IP address

positional arguments:
ip                   query network abuse contacts for a given ip address

optional arguments:
-h, --help           show this help message and exit
--provider PROVIDER  change standard network abuse contacts provider.
                    Defaults to
--version            show program's version number and exit


>>> from querycontacts import ContactFinder
>>> qf = ContactFinder()
>>> qf.find('')
['root@localhost', 'abuse@localhost']

>>> qf.find('::ffff:7f00:2')


pip install querycontacts


class querycontacts.ContactFinder(provider='')

Contact Finder



Parameters:provider (string) – Abuse contact lookup provider
__weakref__ None

list of weak references to the object (if defined)


Find the abuse contact for a IP address

Parameters:ip (string) – IPv4 or IPv6 address to check
Returns:emails associated with IP
Return type:list
Returns:none if no contact could be found
Return type:None
Raises:ValueError: if ip is not properly formatted

set the provider for a specific path

Parameters:provider (string) – Abuse contact lookup provider

Indices and tables

Table Of Contents

This Page