- Impact
- 322
I wrote a little Python script this week to aid myself in filtering daily expiring domain lists by criteria I specify. I have it set to run automatically using the built-in Automator application on macOS, but it can easily be run with a UNIX cronjob or Windows Task Scheduler as well.
You can review the full source code at github.com/crock/dropcatch-filter
If you are knowledgeable in Python, contributions are welcome. Just make a pull request anytime and I'll review it as soon as possible.
Comes with a simple JSON configuration file that looks like this:
The script programmatically downloads the next day's expiring list from Namejet's website and parses it. It then filters the entire list in mere seconds based on the criteria you specify in the config.json file.
If running on a timer of some sort, please set the script to run AFTER 7:00 AM PST because the next day's list is not available until that time the day before.
Installation Instructions
You can review the full source code at github.com/crock/dropcatch-filter
If you are knowledgeable in Python, contributions are welcome. Just make a pull request anytime and I'll review it as soon as possible.
Comes with a simple JSON configuration file that looks like this:
Code:
{
"maxDomainLength": 10,
"keywords": [
"minecraft",
"coin",
"craft",
"tech",
"pvp"
],
"tlds": [
"com",
"net",
"org",
"io",
"co"
]
}
The script programmatically downloads the next day's expiring list from Namejet's website and parses it. It then filters the entire list in mere seconds based on the criteria you specify in the config.json file.
If running on a timer of some sort, please set the script to run AFTER 7:00 AM PST because the next day's list is not available until that time the day before.
Installation Instructions
- Download the Python 3.6.x+ installer from python.org/downloads
- Run the installer, but please make sure to tick the box labeled "Add Python to environment variables". It is unchecked by default. This is important!
- Open Terminal (Mac/Linux) or Command Prompt (Windows) and type the following command to let the terminal know where the script files are located. Replace [file path] with the full path to the directory containing the files: cd [file path]
- Next, run the following command: pip install -r requirements.txt
- The above steps only need to be run once. Now every time you want to run this utility, you simply run the following command: python main.py (if that doesn't work, try replacing python in that command with python3)
- If executed correctly, you will see domains being output according to your criteria and they will also be saved to a file in the results directory with the name results_MM-DD-YYYY.txt