This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
/
script.py
52 lines (38 loc) · 1.68 KB
/
script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from selenium import webdriver
import os
# Clear the console
def cls():
os.system('cls' if os.name == 'nt' else 'clear')
cls()
zoomBrand = """
########::'#######:::'#######::'##::::'##:'########:'########::
..... ##::'##.... ##:'##.... ##: ###::'###: ##.....:: ##.... ##:
:::: ##::: ##:::: ##: ##:::: ##: ####'####: ##::::::: ##:::: ##:
::: ##:::: ##:::: ##: ##:::: ##: ## ### ##: ######::: ##:::: ##:
:: ##::::: ##:::: ##: ##:::: ##: ##. #: ##: ##...:::: ##:::: ##:
: ##:::::: ##:::: ##: ##:::: ##: ##:.:: ##: ##::::::: ##:::: ##:
########:. #######::. #######:: ##:::: ##: ########: ########::
........:::.......::::.......:::..:::::..::........::........:::
"""
print(zoomBrand)
print("Looks like you have a meeting scheduled soon! Lets get you joined.\n\n")
get_id = str(input("What is the zoom ID for the meeting: "))
def valid_id(get_id):
valid_char_length = range(9, 12)
while True:
if len(get_id) in valid_char_length:
meeting_url = "https://asurion.zoom.us/j/" + str(get_id)
browser = webdriver.Chrome()
browser.get(meeting_url)
if browser.find_elements_by_xpath("//*[contains(text(), 'Invalid meeting ID')]"):
print("The meeting ID that you entered was invalid. Please enter a valid meeting ID")
get_id = str(input("What is the zoom ID for the meeting: "))
else:
print("Enjoy your meeting and STAY AWAKE :)")
break
else:
print(
"The meeting ID length must be between 9 and 11 characters in length")
get_id = str(input("What is the zoom ID for the meeting: "))
# Verify meeting validity!
valid_id(get_id)