Abuse Contact Finder

class prsw.stat.abuse_contact_finder.AbuseContactFinder(RIPEstat, resource)

The main purpose of this data call is to return abuse contact informations for a Internet number resource.

Note

Note that this information is in many cases incorrect or not available.

Reference: https://stat.ripe.net/docs/data_api#abuse-contact-finder

Property

Description

abuse_contacts

list of dedicated abuse contacts (email addresses)

authoritative_rir

Regional Internet Registry authoritative for the looked up resource

earliest_time

Holds the time the query was based on.

latest_time

Holds the time the query was based on.

resource

The resource the query was based on.

import prsw

ripe = prsw.RIPEstat()

# Lookup by ASN
contacts = ripe.abuse_contact_finder(3333)

# Lookup by IPv4 or IPv6 Address
contacts = ripe.abuse_contact_finder(IPv4Address('193.0.0.0'))

# Lookup by IPv4 or IPv6 Network (prefix)
contacts = ripe.abuse_contact_finder(IPv4Network('193.0.0.0/23))

# See each property below for additional details on each of the returned
# properties listed in the table above.

contacts.resource
# resource used in query:
# 3333 -or- IPv4Address('193.0.0.0') -or- IPv4Network('193.0.0.0/23')

contacts.earliest_time
# datetime.datetime(2021, 4, 14, 12, 54, 37)
__init__(RIPEstat, resource)

Initialize and request Abuse Contacts.

Parameters

resource – A prefix, single IP address or ASN

contacts = ripe.abuse_contact_finder('193.0.0.0')
property abuse_contacts

Returns a list of dedicated abuse contacts (email addresses)

finder = ripe.abuse_contact_finder(3333)

for email_address in finder.abuse_contacts:
    print(email_address)
property authoritative_rir

Returns the Regional Internet Registry authoritative for the looked up resource

contacts = ripe.authoritative_rir('193.0.0.0')

contacts.authorities
# 'ripe'
property earliest_time

Holds the time the query was based on.

property latest_time

Holds the time the query was based on.

property resource

Holds the resource the query was based on.