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
|
||||
"""
|
||||
HKS-CBF scraper - parses Genius Sports embed standings for HR košarka leagues.
|
||||
Path: /opt/pgz-sport/scrapers/hks_scraper.py
|
||||
Source: https://hosted.dcd.shared.geniussports.com/embednf/HKS/en/competition/{ID}/standings
|
||||
Output: pgz_sport.natjecanja_tablice + pgz_sport.klubovi (matching)
|
||||
"""
|
||||
import os
|
||||
import requests, re, json, psycopg2, html as ihtml
|
||||
|
||||
DB = dict(host="10.10.0.2", port=6432, port=5432, dbname='rinet_v3',
|
||||
user='rinet', password='R1net2026!SecureDB#v7')
|
||||
user='rinet', password=os.environ["DB_PASSWORD"])
|
||||
UA = "RiNET-Civic/1.0 (https://rinet.one)"
|
||||
HDR = {"User-Agent": UA, "Accept": "application/json", "Referer": "https://www.hks-cbf.hr/"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user