mirror of
https://github.com/FranP-code/classify_saved_videos_yt.git
synced 2025-10-13 00:32:25 +00:00
first commit
This commit is contained in:
BIN
img/brave.png
Normal file
BIN
img/brave.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
BIN
img/delete.png
Normal file
BIN
img/delete.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
BIN
img/options.png
Normal file
BIN
img/options.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 348 B |
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Python==3.11.10
|
||||||
|
opencv-python==4.11.0.86
|
||||||
|
pillow==11.3.0
|
||||||
|
PyAutoGUI==0.9.54
|
||||||
48
script.py
Normal file
48
script.py
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
import pyautogui as pgui
|
||||||
|
import time
|
||||||
|
import keyboard as kb
|
||||||
|
|
||||||
|
# colocar el nombre de tu navegador, basado en el nombre de la imagen de su respectivo icono
|
||||||
|
browser = 'brave'
|
||||||
|
|
||||||
|
browser_loc = pgui.locateCenterOnScreen(f'img/{browser}.png', confidence=0.8)
|
||||||
|
|
||||||
|
pgui.moveTo(browser_loc, duration=0.2)
|
||||||
|
time.sleep(0.2)
|
||||||
|
pgui.click()
|
||||||
|
|
||||||
|
# cambia el tiempo dependiendo de cuanto tarde en abrir tu navegador
|
||||||
|
time.sleep(2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
pgui.hotkey('ctrl', 't')
|
||||||
|
|
||||||
|
pgui.write('https://www.youtube.com/playlist?list=WL')
|
||||||
|
time.sleep(0.05)
|
||||||
|
pgui.press("enter")
|
||||||
|
|
||||||
|
# cambiar dependiendo de cuanto tarde en cargarte yt
|
||||||
|
time.sleep(5)
|
||||||
|
|
||||||
|
videos = 4191
|
||||||
|
|
||||||
|
while videos != 0:
|
||||||
|
|
||||||
|
if kb.is_pressed('q'):
|
||||||
|
print(':(')
|
||||||
|
break
|
||||||
|
|
||||||
|
opt_loc = pgui.locateCenterOnScreen('img/options.png', confidence=0.8)
|
||||||
|
|
||||||
|
pgui.moveTo(opt_loc, duration=0.2)
|
||||||
|
pgui.click()
|
||||||
|
time.sleep(0.2)
|
||||||
|
|
||||||
|
del_loc = pgui.locateCenterOnScreen('img/delete.png', confidence=0.8)
|
||||||
|
|
||||||
|
pgui.moveTo(del_loc, duration=0.2)
|
||||||
|
pgui.click()
|
||||||
|
time.sleep(0.2)
|
||||||
|
|
||||||
|
videos -= 1
|
||||||
Reference in New Issue
Block a user