From 67657992e6c97a3e99b6c93bf5c6ee1d379c2f3a Mon Sep 17 00:00:00 2001 From: Swee Date: Sat, 5 Oct 2024 14:57:55 -0700 Subject: [PATCH] Create search --- cc/search | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cc/search diff --git a/cc/search b/cc/search new file mode 100644 index 0000000..31a339d --- /dev/null +++ b/cc/search @@ -0,0 +1,8 @@ +from duckduckgo_search import DDGS +from sys import argv +print("Please stand by...") +request = [] +while request == []: + request = DDGS().text(" ".join(argv[3:])) +result = [] +print(request[0]) \ No newline at end of file