We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f57ac88 + c9960eb commit 571d8adCopy full SHA for 571d8ad
gpt_researcher/retrievers/duckduckgo/duckduckgo.py
@@ -7,8 +7,8 @@ class Duckduckgo:
7
Duckduckgo API Retriever
8
"""
9
def __init__(self, query, query_domains=None):
10
- check_pkg('duckduckgo_search')
11
- from duckduckgo_search import DDGS
+ check_pkg('ddgs')
+ from ddgs import DDGS
12
self.ddg = DDGS()
13
self.query = query
14
self.query_domains = query_domains or None
@@ -26,4 +26,4 @@ def search(self, max_results=5):
26
except Exception as e:
27
print(f"Error: {e}. Failed fetching sources. Resulting in empty response.")
28
search_response = []
29
- return search_response
+ return search_response
0 commit comments