AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning

This commit is contained in:
Krilly
2026-03-04 13:29:22 +00:00
parent 29a98137a7
commit 57dd294675
13706 changed files with 2114953 additions and 237629 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/bash
# TQQQ 캐시 조회 (즉시 응답)
set -euo pipefail
CACHE_FILE="$HOME/openclaw/memory/tqqq-cache.json"
if [[ ! -f "$CACHE_FILE" ]]; then
echo "❌ 캐시 파일 없음. 실시간 조회 중..."
python3 ~/openclaw/scripts/tqqq-yahoo-monitor.py
exit 0
fi
# 캐시 나이 체크 (5분 = 300초)
AGE=$(( $(date +%s) - $(stat -f%m "$CACHE_FILE" 2>/dev/null || stat -c%Y "$CACHE_FILE") ))
if (( AGE > 300 )); then
echo "⚠️ 캐시 만료 (${AGE}초). 실시간 조회 중..."
python3 ~/openclaw/scripts/tqqq-yahoo-monitor.py
exit 0
fi
# 캐시 데이터 출력
jq -r '.data' "$CACHE_FILE"
echo ""
echo "📌 캐시 조회 (${AGE}초 전 데이터)"