forked from swee/MeowNex
Update search
This commit is contained in:
parent
9b3a8ff218
commit
b164f60997
1 changed files with 1 additions and 5 deletions
|
@ -3,10 +3,6 @@ import duckduckgo_search
|
|||
from sys import argv
|
||||
try:
|
||||
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
|
||||
print(request[0]["href"] + " ⁜ " + request[0]["title"] + " ⁜ " + request[0]["body"])
|
||||
except duckduckgo_search.exceptions.RatelimitException:
|
||||
print("DuckDuckGo was rate limited, please try again later.")
|
Loading…
Reference in a new issue