feat: /api/v2/analiza/* endpoints - sport analytics backend
This commit is contained in:
+5
-1
@@ -1,17 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv('/opt/rinet-gpu/.env.master')
|
||||
# auto-added by patch_scrapers_with_dotenv.sh
|
||||
"""
|
||||
PGŽ Sport - Continuous Learning Loop
|
||||
Scrape Sportilus, sport-pgz.hr, klub websites, embed sve novo, update Qdrant
|
||||
Author: Damir Radulić | 25.04.2026
|
||||
Schedule: cron 0 */6 * * * (every 6h)
|
||||
"""
|
||||
import os
|
||||
import psycopg2, psycopg2.extras, requests, time, logging, re
|
||||
from datetime import datetime
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format='%(asctime)s [LEARN] %(message)s')
|
||||
LOG = logging.getLogger()
|
||||
|
||||
DB = dict(host='10.10.0.2', port=6432, dbname='rinet_v3', user='rinet', password='R1net2026!SecureDB#v7')
|
||||
DB = dict(host='10.10.0.2', port=6432, dbname='rinet_v3', user='rinet', password=os.environ["DB_PASSWORD"])
|
||||
QDRANT = 'http://10.10.0.2:6333'
|
||||
EMBED = 'http://localhost:9879/api/embeddings'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user