I'm trying to get the information of all divs with the class="top-tournament " using HtmlAgilityPack in c#
The problem is that nodes variable is always empty, it means that I'm not doing it in the proper way
HTML example
With this code
class Program
{
static void Main(string[] args)
{
startCrawlerAsync().Wait();
}
private static async Task startCrawlerAsync()
{
var url = "https://live.soccerstreams.net/home";
var httpClient = new HttpClient();
var html = await httpClient.GetStringAsync(url);
var htmlDocument = new HtmlDocument();
htmlDocument.LoadHtml(html);
HtmlNodeCollection nodes = htmlDocument.DocumentNode.SelectNodes("//div[@class=\"top-tournament \"]");
}
}