Repository Public
1#!/bin/zsh2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : Vrai-Prix8# File : scripts/ingest-via-safari.sh9# Module : scripts10# Repository : https://git.spboucher.ai/vrai-prix11# Created : 2026-10-2012# Last Modified : 2026-10-2013#14# Author : Simon-Pierre Boucher15# Position : Professor of Finance16# Institution : Université du Québec en Outaouais (UQO)17# Organization : SP Boucher18# Website : https://spboucher.ai19# Git : https://git.spboucher.ai20#21# Preferred Contact: contact@spboucher.ai22# Technical Contact: dev@spboucher.ai23# Security/Admin : admin@spboucher.ai24#25# Copyright (c) 202626# Simon-Pierre Boucher27# All rights reserved where applicable. This file is governed by the28# applicable project license, copyright notices and relevant law.29# Existing third-party rights and notices remain unaffected.30#31# License : None specified (no license file in this repository)32#33# Do not embed credentials, private keys, access tokens,34# certificates or confidential personal information.35#36# =============================================================================37# END OF SP BOUCHER SOURCE HEADER38# =============================================================================3940# Laptop → nœud : jeton QUB via Safari (AppleScript), puis ingestion des ventes41# récentes sur le nœud qui héberge Vrai-Prix (sans passer par Scrapfly).42# scripts/ingest-via-safari.sh [--since=YYYY-MM-DD] [--region=Nom] [--dry-run]43set -eu44NODE=${VRAIPRIX_NODE:-M3U96a}45DIR=${VRAIPRIX_DIR:-'~/apps/vrai-prix'}46tok=$("$(dirname "$0")/qub-token-safari.sh")47[[ -n "$tok" ]] || { echo "pas de jeton" >&2; exit 1; }48ssh "$NODE" "cd $DIR && QUB_TOKEN='$tok' /opt/homebrew/bin/node scripts/ingest-jdm.mjs $*"49