This Python script automates the search for plate number availability on the EzyPlates website.
- Automatically searches for plate number availability
- Handles both available and unavailable plate numbers
- Runs in headless mode (no browser window)
- Automatic ChromeDriver management
- Error handling and validation
- Clean output formatting
- Python 3.7 or higher
- Google Chrome browser installed
- Internet connection
-
Clone or download the script files
-
Install required dependencies:
pip install -r requirements.txt
Or install manually:
pip install selenium webdriver-manager
python plate_search_final.py <plate_number>
# Search for a specific plate number
python plate_search_final.py EZYPLTE
# Search for another plate number
python plate_search_final.py ABC123
# Search with spaces (they will be removed automatically)
python plate_search_final.py "ABC 123"
# Search multiple plates from command line
python batch_plate_search.py ABC123 DEF456 GHI789
# Search plates from a file
python batch_plate_search.py --file plates.txt
# Search plates from a file and save results to CSV
python batch_plate_search.py --file plates.txt --output results.csv
The script will display:
- Plate number being searched
- Availability status (AVAILABLE, UNAVAILABLE, or ERROR)
- Full message from the website
- Appropriate exit code
0
: Plate number is available1
: Plate number is unavailable2
: Unknown status or error130
: Script interrupted by user
Create a text file with one plate number per line:
ABC123
DEF456
GHI789
# This is a comment
JKL012
The batch search can save results to a CSV file with columns:
plate_number
: The searched plate numberstatus
: available/unavailable/error/unknownmessage
: Full message from the websitetimestamp
: When the search was performed
Basic version that requires manual ChromeDriver installation.
Improved version with webdriver-manager for automatic ChromeDriver management.
Simple version that uses system ChromeDriver.
Final version with:
- System ChromeDriver support
- Better error handling
- Anti-detection measures
- Input validation
- Proper exit codes
- Emoji indicators for results
Batch search script that can search multiple plate numbers:
- Search multiple plates from command line
- Search plates from a text file
- Save results to CSV file
- Summary statistics
-
Chrome not installed
- Make sure Google Chrome is installed on your system
-
Permission errors
- Run with appropriate permissions for your system
-
Network issues
- Check your internet connection
- The website might be temporarily unavailable
-
Element not found errors
- The website structure might have changed
- Try running the script again
To see the browser window (for debugging), modify the script by removing the --headless
option:
# Comment out or remove this line in setup_driver():
# chrome_options.add_argument("--headless")
This script is for educational and personal use only. Please respect the website's terms of service and rate limiting. Do not use this script for commercial purposes or to overload the website with requests.
This script is provided as-is for educational purposes.