Hi I'm making a simple web scraping solution that gets several titles of different articles and I want to save all the extracted titles (strings) into an array from a foreach
loop.
foreach (var item in doc.DocumentNode.SelectNodes("//h2[@class='entry__title']"))
{
Console.WriteLine(item.InnerText);
}
Is there a specific way to? I been looking in the documents but seems like I just can't make it work..