Created
July 17, 2023 18:07
-
-
Save RGGH/524871daaa159f82df5bb97e72e28886 to your computer and use it in GitHub Desktop.
ddg is deprecated. Use DDGS().text() generator | Duck Duck Go - Generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain.tools import DuckDuckGoSearchRun | |
''' | |
"snippet": result["body"], | |
"title": result["title"], | |
"link": result["href"], | |
''' | |
from duckduckgo_search import DDGS | |
ddgs = DDGS() | |
results = search = DDGS().text("Tesla stock price?") | |
[result['body'] for result in results] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment