Skip to main content

parse_html_search_results

Function parse_html_search_results 

Source
pub fn parse_html_search_results(html: &str) -> Vec<SearchResult>
Expand description

BP-2 (catalog:45 “Provider/server-backed search”): pull results out of a DuckDuckGo-style HTML results page — the result__a anchors and their result__snippet siblings, in page order.

Structure-tolerant on purpose: an engine that changes its markup yields zero results here, and the caller then falls back to the page as markdown rather than pretending there were no hits.