-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClass.py
More file actions
35 lines (29 loc) · 848 Bytes
/
Class.py
File metadata and controls
35 lines (29 loc) · 848 Bytes
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
from selenium import webdriver
from pyautogui import press
from time import sleep
from datetime import datetime
from winsound import Beep
def beep():
for i in range(3):
Beep(440,1000)
def classs(link):
options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=" #############Enter your chrome user data path)
driver=webdriver.Chrome(executable_path=#########Enter your chromedriver path,
chrome_options=options)
driver.get(str(link))
sleep(3)
press('left')
press('enter')
sleep(5)
press('enter')
driver.close()
l=input("Enter Your class link: ")
start=str(input("Enter your class start time:\nEx:09:00 : "))
while True:
now= datetime.now()
t=now.strftime('%H:%M')
if t==start:
beep()
classs(l)
break