This Python script automates the process of downloading reports for the DAA Lab at SRM University. All reports will be saved in the specified Downloads folder.
To use this script, follow these instructions:
- Fork and Clone the Repository: Begin by forking the repository and then clone it to your local machine.
- Configure the Script: Open the
script.py
file and set the following variables with your specific details:PATH = '<exact path where your Chrome driver is downloaded>' TIME = 3 # Wait time for page loads and downloads USERNAME = '<SRM roll number e.g. RA1911003010xxx>' PASSWORD = '<password for your elab>' DOWNLOAD_FOLDER = '<exact path where you want your files to be downloaded>'
To run the script, you need to install and configure several components:
-
Selenium: Install Selenium via pip:
pip install selenium
-
Chrome WebDriver: Download the Chrome WebDriver from Chromium.org.
-
Environment Configuration: After downloading, add the path to the Chrome WebDriver to your system's environment variables. For guidance on setting up the driver on Windows, refer to this guide on Stack Overflow.