Update search
This commit is contained in:
parent
24f0db45c7
commit
e6f89cf73b
1 changed files with 5 additions and 1 deletions
|
@ -2,4 +2,8 @@ from duckduckgo_search import DDGS
|
||||||
from sys import argv
|
from sys import argv
|
||||||
print("Please stand by...")
|
print("Please stand by...")
|
||||||
request = DDGS().text(" ".join(argv[3:]))
|
request = DDGS().text(" ".join(argv[3:]))
|
||||||
print(request[0]["href"] + " ⁜ " + request[0]["title"] + " ⁜ " + request[0]["body"])
|
for i in range(0,2):
|
||||||
|
try:
|
||||||
|
print(request[i]["href"] + " ⁜ " + request[i]["title"] + " ⁜ " + request[i]["body"])
|
||||||
|
except:
|
||||||
|
break
|
||||||
|
|
Loading…
Reference in a new issue