Amazing-Python-Scripts

Форк
0

README.MD

GoogleClassroom-Bot


This bot joins your classes for you on time automatically using your google classroom schedule and account credentials.

Requirements

Setup

  1. cd GoogleClassroom-Bot

  2. Enter your account credentials in config.ini
    Example:

    [AUTH]
    USERNAME=username@abc.com
    PASSWORD=password
    
  3. Download geckodriver from here and place it in the folder

  4. Create a profile in Firefox and block the camera and microphone access for google meet.

  5. 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')
    
  6. Get the Course Names from your classroom.

  7. Insert the Course Name at the appropriate position in schedule.csv
    Example:

    CS16004-SemC

    • Mon - 09:20
    • Tue - 11:40
    • Thu - 14:25
    Day09:2011:4014:25
    MonCS16004-SemC
    TueCS16004-SemC
    Wed
    ThuCS16004-SemC
    Fri
  • Repeat this for all the Courses to populate the schedule.csv with your schedule

Execution

  1. cd GoogleClassroom-Bot
  2. python3 gmeet_bot.py
  3. ctrl+c will stop the execution

Output

  • The program will run in the background.
  • When the current time hits one of the class timings,
    1. The program automatically fires up the browser.
    2. Logs in your account into google classroom.
    3. Finds the Course from schedule.csv.
    4. Joins the meeting using the Meet Link in the course room.
    5. After one hour, ends the meeting and closes the browser.

Customization

  1. Class Timings
    • Modify the class timings in source code and in the header of schedule.csv
    • Use 24-hour time format
  2. 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
    

Troubleshooting

  1. Google account must not be already logged in.
  2. schedule.csv must contain the exact course names.
  3. Slow internet connection may cause program to crash.

Author

Soorya Prakash

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.