forked from HitraNOfficial/PythonYoutube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyoutube_algorithm_boost_for_Graham_Stephan.py
More file actions
37 lines (30 loc) · 1.08 KB
/
youtube_algorithm_boost_for_Graham_Stephan.py
File metadata and controls
37 lines (30 loc) · 1.08 KB
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
import webbrowser
import pyautogui, time, sys
def booster():
# like video
pyautogui.moveTo(1030, 995, 2, pyautogui.easeOutQuad)
pyautogui.click(button='left', clicks=1)
# scroll down
pyautogui.scroll(-1000)
# comment on video
pyautogui.moveTo(180, 860, 2, pyautogui.easeOutQuad)
pyautogui.click(button='left', clicks=1)
pyautogui.write('Greate video! Keep it up!', interval=0.2)
pyautogui.moveTo(1300, 890, 2, pyautogui.easeOutQuad)
pyautogui.click(button='left', clicks=1)
# scroll up
pyautogui.scroll(1000)
pyautogui.moveTo(1300, 950, 2, pyautogui.easeOutQuad)
webbrowser.open('https://www.youtube.com/channel/UCV6KDgJskWaEckne5aPA0aQ/videos')
time.sleep(2)
pyautogui.moveTo(500, 700, 2, pyautogui.easeOutQuad)
pyautogui.click(button='left', clicks=1)
try:
while True:
booster()
time.sleep(60*15)
# proceed to next video
pyautogui.moveTo(75, 910, 2, pyautogui.easeOutQuad)
pyautogui.click(button='left', clicks=1)
except KeyboardInterrupt:
print('stopping...')