-
Notifications
You must be signed in to change notification settings - Fork 7
/
ytbot.py
21 lines (17 loc) · 1020 Bytes
/
ytbot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from selenium import webdriver
from time import sleep
siddharth1= webdriver.Chrome(executable_path="C:\Users\siddh\Downloads\Compressed\chromedriver_win32\chromedriver")#In executable path give the path of chromedriver that you have downloaded. In my case it is in downloads.
siddharth2= webdriver.Chrome(executable_path="C:\Users\siddh\Downloads\Compressed\chromedriver_win32\chromedriver")
siddharth3= webdriver.Chrome(executable_path="C:\Users\siddh\Downloads\Compressed\chromedriver_win32\chromedriver")
siddharth1.get("https://youtu.be/OU69JaZ1FQo")#provide the link
siddharth2.get("https://youtu.be/OU69JaZ1FQo")
siddharth3.get("https://youtu.be/OU69JaZ1FQo")
#i have used siddharth 1,2,3 so it will open 3 tabs
#if you want to add more tabs you can also do it
while True:
sleep(18)#sleep 18 meanes after 18 seconds page will refresh
siddharth1.refresh()
siddharth2.refresh()
siddharth3.refresh()
#To execute - Simple run this code
#Happy coding - Siddharth