Add
using ScrapySharp.Extensions;
It seems like you are missing it. This should make CssSelectavailable.
Just in case, the example helps, here is also the method that I use in the project:
private string GetPdfUrl(HtmlDocument document, string baseUrl)
{
return new Uri(new Uri(baseUrl), document.DocumentNode.CssSelect(".table-of-content .head-row td.download a.text-pdf").Single().Attributes["href"].Value).ToString();
}
source
share