Chinese-LangChain / tests /test_duckduckgo_search.py
quincyqiang's picture
update
96a6f43
raw
history blame
213 Bytes
from duckduckgo_search import ddg
from duckduckgo_search.utils import SESSION
SESSION.proxies = {
"http": f"socks5h://localhost:7890",
"https": f"socks5h://localhost:7890"
}
r = ddg("马保国")
print(r)