Merge pull request #2252 from elitexp/fix/asyncDDG-2236

Duck Duck Go Async Text Search Bug Fix
This commit is contained in:
Tekky 2024-09-29 22:42:37 +02:00 committed by GitHub
commit 0792deeffc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,7 @@ async def search(query: str, n_results: int = 5, max_words: int = 2500, add_text
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
async with AsyncDDGS() as ddgs:
results = []
for result in await ddgs.text(
for result in await ddgs.atext(
query,
region="wt-wt",
safesearch="moderate",