mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 11:02:40 +03:00
Update internet.py
This commit is contained in:
parent
d53db73248
commit
0f81b61739
@ -99,7 +99,7 @@ async def fetch_and_scrape(session: ClientSession, url: str, max_words: int = No
|
||||
async def search(query: str, n_results: int = 5, max_words: int = 2500, add_text: bool = True) -> SearchResults:
|
||||
if not has_requirements:
|
||||
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
|
||||
async with AsyncDDGS() as ddgs:
|
||||
async with DDGS() as ddgs:
|
||||
results = []
|
||||
for result in await ddgs.atext(
|
||||
query,
|
||||
|
Loading…
Reference in New Issue
Block a user