Skip to content

Conversation

@wuchenghao0215
Copy link

This PR updates the WebAgent's fallback search to use the ddgs library. The duckduckgo_search package has been officially renamed to ddgs.

screenshot

The previous fallback implementation, which relied on manual requests to the DuckDuckGo HTML endpoint and regex scraping (_scrape_search_results and _get_duckduckgo_instant_answer), has stopped working and now consistently returns an empty list.

This change replaces the broken scraping logic with a simpler, more robust implementation using the DDGS.text() method from the new ddgs library. This restores the fallback search functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant