2024-10-05 14:57:55 -07:00
|
|
|
from duckduckgo_search import DDGS
|
|
|
|
from sys import argv
|
|
|
|
print("Please stand by...")
|
2024-10-05 14:59:00 -07:00
|
|
|
request = DDGS().text(" ".join(argv[3:]))
|
2024-10-05 15:04:55 -07:00
|
|
|
for i in range(0,3):
|
2024-10-05 15:04:18 -07:00
|
|
|
try:
|
|
|
|
print(request[i]["href"] + " ⁜ " + request[i]["title"] + " ⁜ " + request[i]["body"])
|
|
|
|
except:
|
|
|
|
break
|