public List <string> FindResults(string searchText) { var urlSearchText = Uri.EscapeUriString(searchText); var results = parser.GetNodesByProperty("ol", "id", "b_results"); return(results.SelectMany(x => x.ChildNodes.Where(x => x.Name == "li").Select(y => y.OuterHtml)).ToList()); }
public List <string> FindResults(string searchText) { var urlSearchText = Uri.EscapeUriString(searchText); var results = parser.GetNodesByProperty("div", "data-async-context", $"query:{urlSearchText}"); return(results.SelectMany(x => x.ChildNodes.Where(x => x.Name == "div").Select(y => y.OuterHtml)).ToList()); }