This project is a Python automation script that uses Selenium WebDriver to open a website, close a popup window, click the Excel export button, and automatically download an Excel file.
The script uses webdriver-manager, so there is no need to manually install ChromeDriver.
- Automated Chrome browser session
- Closes the initial popup
- Clicks the Export to Excel button
- Downloads files into the excel_dir folder
- Uses webdriver-manager for automatic driver handling
- Clean and modular Python code
git clone https://github.com/SamiraSiavash/selenium-excel-scraper.git
cd selenium-excel-downloader
pip install -r requirements.txt
python src/scraper.py
The script will:
- Open the website
- Close the popup
- Trigger the Excel export
- Download the file into excel_dir
Downloaded Excel files are saved in:
excel_dir/
This folder is created automatically when the script runs.
- Python
- Selenium
- WebDriver Manager
MIT License (optional)
Samira Siavash
π GitHub: https://github.com/SamiraSiavash
π LinkedIn: https://linkedin.com/in/samira-siavash
