From 9a10b60de03286fd28d85ca04c929bdf642f96bd Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 5 Oct 2024 17:32:55 -0700 Subject: [PATCH] Update cc/search --- cc/search | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/search b/cc/search index 256f32b..ef0d137 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, region='wt-wt', timelimit='7d') + request = DDGS().text(" ".join(argv[3:]), max_results=1, region='wt-wt', timelimit='7d', safesearch="on") print(request[0]["href"] + " ⁜ " + request[0]["title"] + " ⁜ " + request[0]["body"]) except Exception as e: print(e) \ No newline at end of file