A Python web scraper built with Selenium WebDriver (Edge) to extract data from vidange*tn.
- 🌐 Selenium WebDriver with Edge browser
- 🔐 Interactive CLI Menu: Choose between TUN or RS plates before starting.
- 📝 Comprehensive Logging: Console and file-based logs.
- 🛡️ Anti-detection: User agents and automation flags.
- 🔄 Automatic WebDriver Management: Uses local driver or downloads if needed.
- Python 3.8 or higher
- Microsoft Edge browser installed
- Internet connection
- Navigate to the project directory
- Install dependencies
pip install -r requirements.txt
- Configure environment variables
Copy
.env.exampleto.env:copy .env.example .env
Run the scraper:
python scraper.pyThe scraper will present a menu:
- Choose TUN (Standard) or RS (Régime Suspensif).
- Enter the plate details (Serie/Number for TUN, or RS Number for RS).
- The browser will start and extract the car details.
Edit .env file to customize:
TARGET_URL: The website to scrape (default: https://vidange*tn)HEADLESS: Run browser in headless mode (True/False)IMPLICIT_WAIT: Seconds to wait for elements (default: 10)OUTPUT_DIR: Directory to save scraped data (default: output)
PlateScraper/
├── .env # Environment variables
├── .gitignore # Git ignore rules
├── requirements.txt # Python dependencies
├── scraper.py # Main scraper script
├── README.md # This file
└── scraper.log # Log file
This project is for educational purposes only. Ensure you have permission to scrape the target website.