def get_google_trending_searches(region: str = "") -> Optional[pd.DataFrame]:
    """Returns overall trending searches in US unless region is provided."""
    # TODO(ishan): Can we filter by category?
    try:
        pytrend = TrendReq()
        return pytrend.trending_searches(pn=region if region else "united_states")
    except Exception as e:
        print(f"Unable to find google trending searches, error: {e}")
        return None
Returns overall trending searches in US unless region is provided.
llama-index-integrations/tools/llama-index-tools-finance/llama_index/tools/finance/news.py