19 lines
797 B
Bash
19 lines
797 B
Bash
#!/bin/bash
|
|
# script a lancer de façon quotidienne
|
|
# machine de référence: proxmox
|
|
# penser à copier les fichiers json de cache si lancé depuis une autre machine
|
|
# crontab -e
|
|
# -----------------
|
|
# 0 0 * * * cd /home/tykayn/www/oedb-backend/extractors && bash run_daily.sh
|
|
# */15 * * * * cd /home/tykayn/www/OEDb_Scrappers && source venv/bin/activate && bash run_jobs.sh # scrappers de traffic
|
|
|
|
source ../venv/bin/activate
|
|
pip install -r ../requirements.txt
|
|
|
|
LOG_FILE="./log_conjob_daily.log"
|
|
|
|
/bin/python3 mobilizon.py --limit 2000 --instance-url https://mobilizon.fr --geocode-missing
|
|
/bin/python3 agenda_geek.py
|
|
/bin/python3 osm_cal.py --max-events 100
|
|
/bin/python3 viparis_events.py --max-pages 2 --max-events 200 --no-dry-run
|
|
/bin/python3 world_days_extractor.py --limit 800 --no-dry-run
|