from duckduckgo_search import DDGS from sys import argv print("Please stand by...") request = DDGS().text(" ".join(argv[3:])) for i in range(0,2): try: print(request[i]["href"] + " ⁜ " + request[i]["title"] + " ⁜ " + request[i]["body"]) except: break