"""Configuration constants for the trending topics pipeline."""

# Regions to collect trends for
REGIONS = ["US", "CA"]

# YouTube category IDs to query (unified trending page removed July 2025)
YOUTUBE_CATEGORIES = {
    25: "News & Politics",
    24: "Entertainment",
    10: "Music",
    17: "Sports",
    20: "Gaming",
    28: "Science & Technology",
}

# Maximum items per source (set high for data accumulation mode)
MAX_ITEMS_PER_SOURCE = 500

# Reddit scraping config - expanded for question/curiosity signals
REDDIT_SUBREDDITS = [
    # Primary "explain it to me" communities (highest signal)
    "OutOfTheLoop",
    "explainlikeimfive",
    "NoStupidQuestions",
    "TooAfraidToAsk",
    # Knowledge/identification communities
    "whatisthisthing",
    "answers",
    "askscience",
    "askhistorians",
    # Debate/perspective communities (uncertainty = content opportunity)
    "changemyview",
    "YouShouldKnow",
    # High-volume general curiosity
    "AskReddit",
    # How-to curiosity
    "howdoesthiswork",
]
REDDIT_POSTS_PER_SUB = 100
REDDIT_REQUEST_DELAY = 2  # seconds between requests
REDDIT_USER_AGENT = "TrendingTopicsPipeline/1.0 (by /u/trendbot)"

# Google News topic feeds (for expanded coverage)
GOOGLE_NEWS_TOPICS = {
    "Technology": "CAAqJggKIiBDQkFTRWdvSUwyMHZNRGRqTVhZU0FtVnVHZ0pWVXlnQVAB",
    "Science": "CAAqJggKIiBDQkFTRWdvSUwyMHZNRGx1YlY4U0FtVnVHZ0pWVXlnQVAB",
    "Business": "CAAqJggKIiBDQkFTRWdvSUwyMHZNRFp0Y1RjU0FtVnVHZ0pWVXlnQVAB",
    "Entertainment": "CAAqJggKIiBDQkFTRWdvSUwyMHZNREpxYW5RU0FtVnVHZ0pWVXlnQVAB",
    "Health": "CAAqJggKIiBDQkFTRWdvSUwyMHZNRFp1ZEdvU0FtVnVHZ0pWVXlnQVAB",
}

# Fuzzy matching threshold (0-100)
FUZZY_THRESHOLD = 85

# Cross-source boost multiplier (for topics appearing in multiple sources)
CROSS_SOURCE_BOOST = 1.5
MIN_SOURCES_FOR_BOOST = 2  # With 3 sources, boost if in 2+

# Time window for trends (168 hours = 7 days)
TRENDS_HOURS = 168
