Centralize token.txt to project root
- Updated 35 scripts to read token.txt from project root using Path(__file__).resolve().parent.parent / "token.txt" - Removed 6 duplicate token.txt files from subdirectories - Single token.txt in project root serves all scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,10 +8,11 @@ Reads Bearer token from token.txt (single line, token only).
|
||||
import requests
|
||||
import pandas as pd
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import List, Dict, Any
|
||||
|
||||
# CONFIG ---------------------------------------------------------------------
|
||||
TOKEN_FILE = "token.txt" # file with token (no "Bearer " prefix)
|
||||
TOKEN_FILE = str(Path(__file__).resolve().parent.parent / "token.txt") # centralized token
|
||||
GRAPHQL_URL = "https://app.medevio.cz/graphql"
|
||||
CLINIC_SLUG = "mudr-buzalkova" # adjust if needed
|
||||
LOCALE = "cs"
|
||||
|
||||
Reference in New Issue
Block a user