commit 38d74f5e2ce850d1aefaed9ea4ca1bdf60a04b78 Author: Emi Date: Sat Jul 5 21:22:07 2025 -0300 first commit diff --git a/img/brave.png b/img/brave.png new file mode 100644 index 0000000..e19b29e Binary files /dev/null and b/img/brave.png differ diff --git a/img/delete.png b/img/delete.png new file mode 100644 index 0000000..773f165 Binary files /dev/null and b/img/delete.png differ diff --git a/img/options.png b/img/options.png new file mode 100644 index 0000000..7507d6e Binary files /dev/null and b/img/options.png differ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8129432 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +# Python==3.11.10 +opencv-python==4.11.0.86 +pillow==11.3.0 +PyAutoGUI==0.9.54 diff --git a/script.py b/script.py new file mode 100644 index 0000000..5e8f0a1 --- /dev/null +++ b/script.py @@ -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