A simple Python script that retrieves assignments from Google classroom using Selenim web scraping
Project Setup:
You will need to install Selenium to run this automation. Along with ChromeDriver.
💻 Installing Selenium:
pip install selenium
on Windows or pip3 install selenium
on MacOS and Linux.
All other packages required are already pre-installed with Python3
🔎 Setting up ChromeDriver:
You can Download ChromeDriver at https://chromedriver.chromium.org/downloads Make sure to download the version which matches with your Google Chrome version. You can easily check your Chrome version by clicking the 3 dots at the top right corner and going to Help > About Chrome
To set up the automation you will need your Google accounts Email and Password, as well as a private link.
Replace the email
variable with your email and the password
variable with your password.
🕵️♂️ How to get a private link:
In order to get a private link, go to Google Classroom's sign in page and click on register > Google Classroom. The URL that appears in the search bar is your private link.
If you are already signed then you may need to sign out or use a browser that is not logged in to your Google account.
Feel free report any issues.