This Python project checks the availability of domains and sends notifications via Pushover if a domain is available.
- Python 3.x
whoislibraryrequestslibrary- Pushover account with API token and user key
-
Install required libraries:
pip install python-whois requestsor
pip install -r requirements.txt -
Pushover Credentials:
Create a
pushover_credentials.jsonfile in the same directory as the script with the following content:{ "user_key": "YOUR_USER_KEY", "api_token": "YOUR_API_TOKEN" } -
Domains File:
Create a
domains.txtfile in the same directory as the script and list the domains you want to check, one per line.Example
domains.txt:example.com google.com youtube.de
Run the script:
python domain_checker.py
The script will read the domains from domains.txt and check their availability. If a domain is available, a Pushover notification will be sent.
check.py: The main script to check domain availability and send notifications.domains.txt: A file containing the list of domains to check.pushover_credentials.json: A file containing Pushover API credentials.
Checking domain example.com
Domain example.com is already registered.
Checking domain google.com
Domain google.com is already registered.
Checking domain youtube.de
Domain youtube.de is already registered.
If a domain is available:
Checking domain availabledomain.com
Domain availabledomain.com is available!
Pushover notification sent successfully.
Sebastian Espei