MeowNex/cc/search
2024-10-05 15:04:55 -07:00

9 lines
279 B
Text

from duckduckgo_search import DDGS
from sys import argv
print("Please stand by...")
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