From b164f6099739ee24d97f69b4a0ef2d7765b6a70e Mon Sep 17 00:00:00 2001 From: Swee Date: Sat, 5 Oct 2024 15:09:51 -0700 Subject: [PATCH] Update search --- cc/search | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cc/search b/cc/search index 5ed088e..d921cf1 100644 --- a/cc/search +++ b/cc/search @@ -3,10 +3,6 @@ import duckduckgo_search from sys import argv try: request = DDGS().text(" ".join(argv[3:])) - for i in range(0,3): - try: - print(request[i]["href"] + " ⁜ " + request[i]["title"] + " ⁜ " + request[i]["body"]) - except: - break + print(request[0]["href"] + " ⁜ " + request[0]["title"] + " ⁜ " + request[0]["body"]) except duckduckgo_search.exceptions.RatelimitException: print("DuckDuckGo was rate limited, please try again later.") \ No newline at end of file