This repository was archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 212
Script to join google meets automatically #284
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
348d731
Script to join google meets automatically
Yuvraj-kadale a56e9b2
changed the chrome driver path
Yuvraj-kadale 182d564
Merge pull request #1 from ankitdobhal/master
Yuvraj-kadale 7ccc572
Create Automatic attending meet
Yuvraj-kadale 7213271
Delete Automatic attending meet
Yuvraj-kadale 9bc33bd
Created new folder for readme file
Yuvraj-kadale 8b82b3e
Rename System-Automation-Scripts/Class_buddy.py to System-Automation-…
Yuvraj-kadale 1d8ee2c
Update Readme.md
Yuvraj-kadale b33323e
Update Readme.md
Yuvraj-kadale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
from selenium import webdriver | ||
import schedule,time | ||
import keyboard | ||
from selenium.webdriver.common.keys import Keys | ||
from selenium.webdriver.common.action_chains import ActionChains | ||
from selenium.webdriver.chrome.options import Options | ||
|
||
#joining Credentials | ||
username="[email protected]" #enter your mail id | ||
password="This is my password" #enter your password | ||
|
||
#giving camera and microphone access to the meet | ||
opt=Options() | ||
opt.add_argument("--disable-infobars") | ||
opt.add_argument("start-maximized") | ||
opt.add_argument("--disable-extensions") | ||
# Pass the argument 1 to allow and 2 to block | ||
opt.add_experimental_option("prefs", { \ | ||
"profile.default_content_setting_values.media_stream_mic": 1, | ||
"profile.default_content_setting_values.media_stream_camera": 1, | ||
"profile.default_content_setting_values.notifications": 1 | ||
}) | ||
browser =webdriver.Chrome(chrome_options=opt,executable_path="C:\\Users\\Yuvraj\\Downloads\\softwares\\Webdrivers\\chromedriver_win32\\chromedriver.exe") #Enter the path of your chrome driver | ||
browser.maximize_window() | ||
action=ActionChains(browser) | ||
|
||
#function to enter the classroom | ||
def get_into(): | ||
keyboard.press_and_release('Tab') | ||
time.sleep(1) | ||
keyboard.press_and_release('Tab') | ||
time.sleep(1) | ||
keyboard.press_and_release('Tab') | ||
time.sleep(1) | ||
keyboard.press_and_release('Tab') | ||
time.sleep(1) | ||
keyboard.press_and_release('Tab') | ||
time.sleep(1) | ||
keyboard.press_and_release('Enter') | ||
|
||
|
||
|
||
def join_classes(): | ||
|
||
browser.get("https://calendar.google.com/") | ||
browser.find_element_by_name("identifier").send_keys(username) | ||
browser.find_element_by_class_name("VfPpkd-RLmnJb").click() | ||
|
||
browser.implicitly_wait(20) | ||
browser.find_element_by_name("password").send_keys(password) | ||
time.sleep(1) | ||
browser.implicitly_wait(40) | ||
browser.find_element_by_class_name("VfPpkd-RLmnJb").click() | ||
|
||
browser.implicitly_wait(15) | ||
cursor_location=browser.find_element_by_class_name('h11RHc').location | ||
x=cursor_location['x'] | ||
y=cursor_location['y'] | ||
action.move_by_offset(x+20,y).click().perform() | ||
browser.find_element_by_class_name("w1OTme").click() | ||
#Entering Google meet | ||
|
||
time.sleep(30) | ||
|
||
keyboard.press_and_release('ctrl+e') | ||
keyboard.press_and_release('ctrl+d') | ||
print("Camera And microphone turned off") | ||
browser.implicitly_wait(10) | ||
print("About to join the class") | ||
get_into() | ||
keyboard.press_and_release('Enter') | ||
print("Slid into the classroom successfully") | ||
time.sleep(5) | ||
keyboard.press_and_release('Win+alt+r') | ||
print("Class Recording Started") | ||
|
||
join_classes() | ||
|
||
#schedule according to your time table and quit the browser according to the time of completion of your class | ||
# schedule.every().day.at("09:00").do(join_classes) | ||
|
||
#while True: | ||
#schedule.run_pending() | ||
#time.sleep(1) | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.