Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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());
        }