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
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.0.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for abuse_whois-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bf7c6afec5d9e489fa3335bc6e6ea3e5c5d99b8227360c5403ed4cf4ed24c8 |
|
MD5 | bc03839d3c4c2d3bdc6f6a48094290db |
|
BLAKE2b-256 | 4e5d63717aeb1c6e58498047b3b817d9746122895c3691a6ddd961f256bbd3e3 |