Para ejecutar este script, copiar y editar el archivo config.py:
mv config.py.example config.py
y editar las variables CX_ID
, SMTP_HOST
, SMTP_PORT
, EMAIL_ADDRESS
y EMAIL_PASSWORD
.
Ejecutar el script para crear la base de datos:
python3 finder_utils/create_db.py
Editar el archivo finder_utils/recipients.txt
con las direcciones de correo electrónico a quienes será enviado el email del script.
Ejecutar periodicamente el script:
python3 finder.py --query "string_busqueda" --site "site_url"
Para ver más opciones:
python3 finder.py --help
Si se tiene problemas con la versión de Python 3.5 o inferior, usar PYTHONIOENCODING=utf-8
al correr el script:
PYTHONIOENCODING=utf-8 python3 finder.py --query "string_busqueda" --site "site_url"