Find where to report a domain for abuse
Project description
abuse_whois
Yet another way to find where to report a domain for abuse.
This tool is highly inspired from the following libraries:
Requirements
- Python 3.7+
- whois
Installation
pip install abuse_whois
# or if you want to use built-in REST API
pip install abuse_whois[api]
Usage
As a library
from abuse_whois import get_get_abuse_contacts
get_abuse_contacts("1.1.1.1")
get_abuse_contacts("github.com")
get_abuse_contacts("https://github.com")
get_abuse_contacts("foo@example.com")
As a CLI tool
$ abuse_whois 1.1.1.1 | jq .
{
"address": "1.1.1.1",
"hostname": "1.1.1.1",
"ipAddress": "1.1.1.1",
"sharedHostingProvider": null,
"registrar": null,
"hostingProvider": {
"provider": "Cloudflare",
"address": "https://www.cloudflare.com/abuse/form",
"type": "form"
}
}
As a REST API
$ uvicorn abuse_whois.api.app:app
INFO: Started server process [2283]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
$ http localhost:8000/api/whois/ address=https://github.com
{
"address": "https://github.com",
"hostingProvider": {
"address": "abuse@amazonaws.com",
"provider": "",
"type": "email"
},
"hostname": "github.com",
"ipAddress": "52.192.72.89",
"registrar": {
"address": "abusecomplaints@markmonitor.com",
"provider": "MarkMonitor, Inc.",
"type": "email"
},
"sharedHostingProvider": null
}
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
abuse_whois-0.1.1.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for abuse_whois-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3553976c3997e05dbba95de3a6a28d57ca89d5450e258afb03e7d663592622f |
|
MD5 | ae44739acd15817364064cded16c9427 |
|
BLAKE2b-256 | 054d2c99f74aa7de45b6ea0c3daab04019a47da2c67613eca001ffc8d8b9dec5 |