INNER CODE UNIT · Python

get_api_key_db

georgekhananaev/google-reviews-scraper-pro · api_server.py:201

def get_api_key_db(request: Request):
    """Get ApiKeyDB from app state."""
    db = getattr(request.app.state, "api_key_db", None)
    if db is None:
        raise HTTPException(status_code=500, detail="API key database not initialized")
    return db


# ---------------------------------------------------------------------------
# Pydantic models
# ---------------------------------------------------------------------------

# --- Jobs ---
_GOOGLE_MAPS_HOSTS = (
    "maps.google.com",
    "www.google.com",
    "google.com",
    "maps.app.goo.gl",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…