Online classes are boring. So I decided to make a bot that attends on my behalf.
Features that I need
- Join online classes without disturbing me
- Send a message in the chatbox if someone calls me
- Doesn't want my sleep to be spoiled
So, I Made a script. Now I don't want to write a long tutorial on how I did and all those stuff. Instead, I'll tell you how to use the script.
Technologies used
- Python
- Selenium
- PyAutoGUI
GitHub Repo
Give it a ⭐ if you like my work
Manitej66 / google-classroom-automation
This is a Python automation script that attends online classes (Google classroom) on your behalf
💻 google-classroom-automation
This is a Python automation script that attends online classes (Google classroom) on your behalf 😉
👀 Features
- Automatic joining in all classes from timetable in single click
- Custom timetable support
- Sends message if a specific keyword is called
- Custom keyword support
🤖 Requirements
- PyAutoGUI
- selenium
❓ How to run the script :
-
Clone the repo
-
Open terminal in folder and run the below code
pip install -r requirements.txt
-
Go to Chrome driver download and download the driver specific to your chrome version
-
Extract the zip in
C:\Program Files (x86)
directory -
Go to
today_classes.py
and replacealertWords
,classes
andsubjects
with your time table -
Go to
today_classes.py
line 81 and enter your email -
Go to
today_classes.py
line 88 and enter your email password -
That's it. There are 3 options in the script
- get today periods
class -t
- join a specific period
class -
…
Video tutorial
How to run the script :
- Clone the repo
- Open terminal in folder and run the below code
pip install -r requirements.txt
Go to Chrome driver download and download the driver specific to your chrome version
Extract the zip in
C:\Program Files (x86)
directoryGo to
today_classes.py
and replacealertWords
,classes
andsubjects
with your time table
alertWords
: The words for which the script need to send a message (To customize the message go to line 126)
subjects
: Dictionary of timetable.
classes
: Google meet links for all subjects
# WHEN THESE WORDS ARE TRIGGERED A MESSAGE WILL BE SENT
alertWords = [ "your_name", "are you there", "unmute yourself", "say something", "can you hear me"]
# TIME TABLE HERE
subjects = {'monday' : ['UNIX', 'OOAD', 'CD', 'OS', 'DBMS'],
'wednesday' : ['CD', 'OOAD', 'OS','DBMS', 'OS'],
'friday' : ['OOAD', 'PEHV', 'CD', 'OS', 'UNIX'],
}
# GOOGLE MEET LINKS TO RESPECTIVE SUBJECTS
classes = { 'UNIX': 'https://meet.google.com/lookup/e3667sh3xh',
'CD':'link_to_sub',
'PEHV':'link_to_sub',
'OS':'link_to_sub',
'OOAD':'link_to_sub',
'DBMS':'link_to_sub'
}
Go to
today_classes.py
line 81 and enter your emailGo to
today_classes.py
line 88 and enter your email passwordThat's it. There are 3 options in the script
- get today periods
Returns list of periods today
class -t
- join a specific period
Opens an automated chrome browser and joins that specific subject class automatically
class subject_name
- automate today classes
Opens an automated chrome browser and joins all periods on the specific date automatically
class -a
The above command will run throughout the day and exit after the last class.
That's it, folks. Do let me know if you want a tutorial on how-to!
Top comments (1)
Nice automation 🤣🤣🤣. I would definitely like a how to on this.