Git Product home page Git Product logo

gmeet-bot's Introduction


I built this to make my life easier as a student. Hope this helps you too!
This bot joins your classes for you on time automatically using the data about
your google classroom schedule and account credentials.
#AutomateAndChill

Requirements

Setup

  1. cd GMeet-Bot
  2. Enter your account credentials in config.ini
    Example:
    [AUTH]
    [email protected]
    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.

  1. Get the path for the created profile using about:profiles in the firefox browser and include the following at the end of the config.ini file.

    [FIREFOX]
    PROFILE_PATH=/path/to/the/created/profile
    
  2. Get the Course Names from your classroom

  3. 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

Execution

  1. cd GMeet-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 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.

License


Leave a โญ if you find this useful!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.