https://github.com/skillkiller/domain-checker
A Python script to check domain availability and send notifications via Pushover.
https://github.com/skillkiller/domain-checker
Last synced: 2 months ago
JSON representation
A Python script to check domain availability and send notifications via Pushover.
- Host: GitHub
- URL: https://github.com/skillkiller/domain-checker
- Owner: Skillkiller
- License: mit
- Created: 2024-06-30T20:03:55.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-06-30T20:08:11.000Z (11 months ago)
- Last Synced: 2025-01-31T22:19:52.745Z (4 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Domain Availability Checker
This Python project checks the availability of domains and sends notifications via Pushover if a domain is available.
## Prerequisites
- Python 3.x
- `whois` library
- `requests` library
- Pushover account with API token and user key## Setup
1. **Install required libraries**:
```
pip install python-whois requests
```
or
```
pip install -r requirements.txt
```2. **Pushover Credentials**:
Create a `pushover_credentials.json` file in the same directory as the script with the following content:
```json
{
"user_key": "YOUR_USER_KEY",
"api_token": "YOUR_API_TOKEN"
}
```3. **Domains File**:
Create a `domains.txt` file 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
```## Usage
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.
## Project Files
- `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.## Example Output
```
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.
```## Author
Sebastian Espei