This bot joins your classes for you on time automatically using your google classroom schedule and account credentials.
- Clone of this repository
- python3
- Firefox browser
pip install requirements.txt
-
cd GoogleClassroom-Bot
-
Enter your account credentials in
config.ini
Example:[AUTH] USERNAME=username@abc.com PASSWORD=password
-
Download geckodriver from here and place it in the folder
-
Create a profile in Firefox and block the camera and microphone access for google meet.
-
Get the path for the created profile using
about:profiles
in the firefox browser and include it here.def login(self): profile = webdriver.FirefoxProfile('/path/to/the/created/profile')
-
Insert the Course Name at the appropriate position in
schedule.csv
Example:CS16004-SemC
- Mon - 09:20
- Tue - 11:40
- Thu - 14:25
Day 09:20 11:40 14:25 Mon CS16004-SemC Tue CS16004-SemC Wed Thu CS16004-SemC Fri
- Repeat this for all the Courses to populate the
schedule.csv
with your schedule
cd GoogleClassroom-Bot
python3 gmeet_bot.py
ctrl+c
will stop the execution
- The program will run in the background.
- When the current time hits one of the class timings,
- The program automatically fires up the browser.
- Logs in your account into google classroom.
- Finds the Course from
schedule.csv
. - Joins the meeting using the
Meet Link
in the course room. - After one hour, ends the meeting and closes the browser.
- Class Timings
- Modify the class timings in source code and in the header of
schedule.csv
- Use 24-hour time format
- Modify the class timings in source code and in the header of
- It is programmed to run for three classes per day. Modify it here by changing 2 to 'n'-1 for 'n' classes.
if self.count < 2: self.count = self.count + 1
- Google account must not be already logged in.
schedule.csv
must contain the exact course names.- Slow internet connection may cause program to crash.