Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Latest commit

 

History

History
190 lines (132 loc) · 5.36 KB

README.md

File metadata and controls

190 lines (132 loc) · 5.36 KB

Google-Meet-Attender-LNMEE

Google fixed Cookie Login

This BOT will attend your online google meet classes on your behalf.(specific for LNMEE)

NEW CLASS TIME ADDED


Chromedriver v87 has been used here

If your chrome version is not 87 Then download it from here https://chromedriver.chromium.org/downloads according to your chrome version. Delete chromedriver.exe before pushing it to heroku. (!important)


Clone this repo

If git is not installed then install git from here Click here to Download Git then run below command.

$ git clone https://github.com/Ryuk-me/Google-Meet-Attender-LNMEE

Installation for localhost

Make sure your have python3 and chrome browser installed.

$ pip install -r requirements.txt

Run command

To get Cookies

python get_cookies.py

To start BOT Only use this command if you intend to use it on localhost.

python main.py

How to change meet code

How to find my google meet code ?

https://meet.google.com/abc-defg-hij
abc-defg-hij <-- it is your meeting code.

How to change meet code ?

1. Download any code editor i prefer vscode.
2. Open main.py with vscode or any other editor or you can use notepad.
3. replace meet code with your meet code and save.

How to set my name and roll to send it to chat.

full_name_with_roll = "Arnab Swami 196175"
now repalce `Arnab Swami 196175` with your name and roll.

How to Deploy it on Heroku

Why do we need it to deploy on heroku ?

1. If we run it on localhost we have to always manually start it.
(And if we do that then why we should call it a BOT)

2. It will consume our cpu usage, data usage and our time.

Why we use heroku ?

Heroku provides free server hosting and 500hrs monthly usage which will be more than enough for us. If you havent created account on heroku create one.

So Coming to the main point How to deploy it on heroku

0. Clone the repo.
1. Install requirements `$ pip install -r requirements.txt`.
2. Run command `$ python get_cookies.py` and login to your google account.
3. Now set your meet code and your name and roll. 
5. go to heroku and create a new app and enter a unique name for your app.
6. Choose region united states.
7. Now go to settings.
8. Click on add buildpack and add the following one by one and save changes.
  $ python
  $ https://github.com/heroku/heroku-buildpack-google-chrome
  $ https://github.com/heroku/heroku-buildpack-chromedriver

9. Click on reveal configs vars

10. Add following vars one by one

    KEY                       VALUES
    CHROMEDRIVER_PATH         /app/.chromedriver/bin/chromedriver
    GOOGLE_CHROME_BIN         /app/.apt/usr/bin/google-chrome
    TZ                        Asia/Kolkata

11. Now go to Deploy Option Heroku.
12. Install heroku CLI and enter following commands one by one. 
    https://devcenter.heroku.com/articles/heroku-cli#download-and-install <-- Heroku CLI

    $ git checkout -b master
    $ heroku login
13. Open command prompt or any terminal in your current directory where all files are located.
    $ git init
    $ heroku git:remote -a your-app-name
    $ git add .
    $ git commit -am "make it better"
    $ git push heroku master

14. Then go to resource option and turn on the bot.

Video Tutorial of deployment of BOT.

You can also watch this video of heroku deployment By Nitin Shivam.

Heroku Deployment Video


Tips

Turn off BOT after class is completed / when you are awake.(to save heroku dyno hours).

Turn on BOT Before Sleeping so it can attend your class while your are asleep.

If you have turned off BOT after class is completed then only turn it on after 3PM.
(If you turn on it before 3PM it will again start your meeting so be careful.) 

SOME IMPORTANT NOTES

This bot will only work with `B SEE A 2019 Batccch`
if you are not from this batccch then do some changes in python file it should work for you as well.

Turn Off two step verification if enabled in your gmail account.

Turn on Less secure apps.

Dont use your primary gmail account.

First run get_cookie.py and get your gmail account cookies. ( NECESSARY i repeat it is NECESSARY )

Dont share these cookies with anyone.

DISCLAIMER

This BOT is created for educational purposes only.
The usage of this BOT is at the own risk of the User.
The Creator shall not be held responsible for any misconduct on your behalf.
If by any chance your google account gets banned or suspended the creator shall not be accountable.
You are agreeing to all these conditions before downloading / cloning / forking this repository.

“Education is the most powerful weapon which you can use to change the world.” ― Nelson Mandela

Attend all classes sincerely.



© Credits

Nitin Shivam for video tutorial.
Mrinal Raj for helping with Readme.


Licence

MIT © Neeraj Kumar