This is a simple Python script that can be used from the command line to quickly check the registration status of multiple domains listed in a text file.
- Clone the repository
git clone https://github.com/suspiciousRaccoon/WhoIs-python-script
- Install dependencies
pip install -r requirements.txt
1.Run the script with the following command:
python whois_script.py -i path/to/text/input_file.txt
Replace path/to/text/input_file.txt
with the path to your input text file containing domains to check. The path must contain the text file itself. Ensure that each domain is listed on a separate line, with no additional content or formatting.
2.The script will create two output files:
- 'registered.txt' - Contains registered domains.
- 'not_registered.txt' - Contains unregistered domains.
By default, these output files will be created in the same directory as the script file. You can also specify custom output file paths using the optional -r and -n arguments.
python whois_script.py -i path/to/text/input_file.txt -r path/to/registered_output/ -n path/to/not_registered_output/
Replace path/to/registered_output/
and path/to/not_registered_output/
with your desired output paths