feat: /api/v2/analiza/* endpoints - sport analytics backend
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv('/opt/rinet-gpu/.env.master')
|
||||
# auto-added by patch_scrapers_with_dotenv.sh
|
||||
"""
|
||||
D curated: hand-curated wiki titles + extracts for top PGŽ athletes.
|
||||
Faster + more reliable than search-based approaches.
|
||||
For each known athlete, hardcode wiki title (HR/EN) and pull summary directly.
|
||||
"""
|
||||
import os
|
||||
import re, json, time, sys
|
||||
import urllib.request, urllib.parse
|
||||
import psycopg2
|
||||
|
||||
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"])
|
||||
UA = "Mozilla/5.0 (compatible; PGZBot/1.0)"
|
||||
|
||||
def out(msg): print(msg, flush=True)
|
||||
|
||||
Reference in New Issue
Block a user