From 5c907f05c1e4f4180f49e10484cd8cbfadada7e2 Mon Sep 17 00:00:00 2001 From: Swee Date: Sat, 5 Oct 2024 17:18:21 -0700 Subject: [PATCH] Update search --- cc/search | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/search b/cc/search index 16dc7f5..d3c0cb3 100644 --- a/cc/search +++ b/cc/search @@ -3,7 +3,7 @@ import duckduckgo_search from sys import argv, exit #try: if True: - request = DDGS().text(" ".join(argv[3:]), max_results=1) + request = DDGS().text(" ".join(argv[3:]), max_results=1, backend='api') print(request[0]["href"] + " ⁜ " + request[0]["title"] + " ⁜ " + request[0]["body"]) exit() #except duckduckgo_search.exceptions.RatelimitException: