Python tool to monitor competitor domains for expiry and send alerts via email.
- Reads domains from a text file (one per line)
- Supports domains with/without http/https/www
- Alerts if domains expire within user-defined days
- Sends reminder emails via SMTP
- Python 3.8+
- Virtual Environment (recommended)
- Install dependencies:
python3 -m venv venv source venv/bin/activate pip install python-whois
Prepare a listdomain.txt with one domain per line:
example.com
www.test.org
https://anotherdomain.net
Run:
python main.py \
--domains listdomain.txt \
--alert-days 30 \
--notify-from you@example.com \
--notify-to target@example.com \
--smtp-server smtp.gmail.com \
--smtp-port 587 \
--smtp-user you@example.com \
--smtp-pass yourpassword
Check domains that expire within 30 days and send email:
python main.py --domains listdomain.txt --alert-days 30 \
--notify-from admin@me.com --notify-to boss@me.com \
--smtp-server smtp.mailtrap.io --smtp-port 587 \
--smtp-user smtp_user --smtp-pass smtp_pass
Works best with Gmail/SMTP servers.
Some registrars may block WHOIS lookup.