Coder Social home page Coder Social logo

krasniqir / google-meet-visitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kr1470r/google-meet-visitor

0.0 0.0 0.0 72.02 MB

Passive agent of Google Meet for automated visiting and recording calls.

License: MIT License

JavaScript 13.41% TypeScript 85.35% HTML 1.24%

google-meet-visitor's Introduction

π†πŽπŽπ†π‹π„-πŒπ„π„π“-π•πˆπ’πˆπ“πŽπ‘7.0.2

Documentation Content

  1. What it does?
    1. Demo
  2. Requirements
  3. Supported Systems
  4. Usage
    1. Installation
    2. Configuration
      1. Explanation of variables
      2. Configuration by arguments
    3. Run
    4. Record calls
  5. FAQ
    1. How to get path for USER_DATA_DIR?
    2. Why does webdriver of visitor use minimized option instead of headless?
    3. How to fix "Failed to start: unknown error: Chrome failed to start: exited normally."?
  6. Contribution
  7. License

What it does

The main purpose of the google-meet-visitor is just to visit calls in google meet.
The main feature is that you can record calls.
It will automate all the user actions, i.e join a call, mute the browser micro and cam, submit that you are in the call, etc.

Demo

Here's example video recorded by google-meet-visitor for 1-minute call. Audio is also supported.

Requirements

Supported systems

Usage

Installation

git clone [email protected]:KR1470R/google-meet-visitor.git
npm ci

Configuration

All the config parameters are stored in the .env file in root of the project.
Variables with asterisk* are important, you won't be able to run the program without them!

Explanation of variables:

USER_DATA_DIR* - specify the path to your google chrome profile directory. See here.
TARGET_CALL_LINK* - link to your google meet call.
CALL_TIMER_MINUTES* - how many minutes the visitor must stay at call
OUTPUT_RECORD_TAB - custom path to folder for output records. By default is dist/records/ in the root.
WIDTH_PX - width of browser window. By default 1000.
HEIGHT_PX - height of browser window. By default 800.
MINIMIZED - true or false. If true, the window of the browser will be minimized and if false - maximized. By default false.
MUTE - true or false. If true, the browser will be totally muted. By default false.
RECORD_TAB - true or false. If true, the visitor will record the call. By default false.
ASK_JOIN_WAIT_MIN - how many minutes await for host of call accept your "ask to join" request(default 10).
IGNORE_ERRORS - skip printing errors(aka "some element not found", etc) - true/false(default false, recomended for debuging).
GMEET_MIC_MUTE - mute gmeet micro, by default false.
GMEET_CAM_MUTE - mute gmeet webcam, by default false.

Configuration by CLI arguments

You also can specify your link to call, user profile path and other config parameters by directly specifying such command-line arguments.
⚠️Note that command-line arguments will override parameters you specified in .env file!⚠️

List of arguments that overrides .env variables:

--user-data-dir= or --u= overrides USER_DATA_DIR
--target-call-link= or --t= overrides TARGET_CALL_LINK
--call-timer-minutes=or --timer= overrides CALL_TIMER_MINUTES
--output-record-tab= or --o overrides OUTPUT_RECORD_TAB
--minimized overrides MINIMIZED
--mute overrides MUTE
--record-tab or --r - overrides RECORD_TAB
--width= or --w= overrides WIDTH_PX
--height= or --h= overrides HEIGHT_PX
--ask-to-join-wait= or --ask-min= overrides ASK_JOIN_WAIT_MIN
--ignore-errors or --i overrides IGNORE_ERRORS
--gmeet-mic-mute or --gmm overrides GMEET_MIC_MUTE
--gmeet-cam-mute or --gcm overrides GMEET_CAM_MUTE

Example usage in CLI:

npm run start -- --u="path/to/user-data-dir/" --t="https://meet.google.com/..." --timer="50" --o="/path/to/output/folder/" --minimized --mute --r --w=1000 --h=800 --ask-min=123 --i

⚠️Do not forget specify -- after npm run start.

Run

‼️Before running the visitor, ensure that you have signed in your account.‼️
⚠️It might ask you to login again to ensure that it's you, otherwise visitor will recognize it and give you 5 minutes for login. Just go to the root directory of the google-meet-visitor and type the command:

npm run make # build the program, run after every changes you made in the project.
npm run start # run the visitor, you have not build the project every time if you have already build it.

βœ…To stop the program before he finishes work, click Ctrl+C - the visitor will save a video(if recording) and stop immediately!

FAQ

How to get path for USER_DATA_DIR?

The main purpose of using user data directory is to automate authorization of user in google meet.
Don't worry, it doesn't steal your data.

  1. Open your google chrome with your already authorized google account.
  2. Type chrome://version/ in your address bar and click enter.
  3. Copy the path from Profile Path row.
  4. Now you can use this path either for USER_DATA_DIR variable in your config or in --user-data-dir= in CLI arguments.

Why does webdriver of visitor use minimized option instead of headless?

Well, on the initial stages of the development that was thought that visitor should run with headless option,
at least for non-recording mode.
But, i faced with a lot of problem by doing it, i couldn't even join to call with headless mode,
i have tried a lot of options, nevertheless google meet just have blocked it.
So the only solution i came up with is just use minimized mode.

How to fix "Failed to start unknown error: Chrome failed to start: exited normally"?

This occurs because chromedriver requires 0 opened Chrome instances.
To fix that problem, you should close all Chrome instances and run the program again.

TODO

  • To fix the interruption when leaving a call by Ctrl-C.

Contribution

I would be very glad for your contributions. Any questions, issues and suggestions will welcome!

Feel free to create new issuesπŸ™ƒ

License

google-meet-visitor's People

Contributors

kr1470r avatar

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.