Hacker News new | ask | show | jobs
by andai 166 days ago

    from ddgs import DDGS

    def web_search(query: str, max_results: int = 8) -> list[dict]:
        return DDGS().text(query, max_results=max_results)