v3.6 - Envio automatizado WhatsApp Web con busqueda por nombre y telefono, deteccion de ticks via msg-meta/SVG title, y validacion integral de selectores
This commit is contained in:
19
whatsapp_sender/dependencies.py
Normal file
19
whatsapp_sender/dependencies.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
DEPENDENCIAS = ["pandas", "openpyxl", "selenium", "pyautogui", "pyperclip"]
|
||||
|
||||
|
||||
def instalar_paquete_si_falta(paquete):
|
||||
try:
|
||||
__import__(paquete)
|
||||
except ImportError:
|
||||
print(f"Instalando '{paquete}'...")
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install", paquete, "--quiet"])
|
||||
print(f"'{paquete}' instalado.")
|
||||
|
||||
|
||||
def asegurar_dependencias():
|
||||
for paquete in DEPENDENCIAS:
|
||||
instalar_paquete_si_falta(paquete)
|
||||
Reference in New Issue
Block a user