Update internet.py

This commit is contained in:
H Lohaus 2024-11-15 18:19:14 +01:00 committed by GitHub
parent 427a72eff3
commit 9da45f9a63
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.atext(
for result in await ddgs.atext(
query,
region="wt-wt",
safesearch="moderate",