Hi,
I am using the agility pack to do some screens scraping and my code so far to get titles is:
foreach (HtmlNode title in root.SelectNodes("//html//body//div//div//div[3]//div//div//div//div[3]//ul//li[1]//h4"))
{
string titleString = "<div class=\"show\">" + title.InnerText + "</div>";
shows.Add(titleString);
}
Before the title I want a timestamp related to the title and it has the node
/html/body/div/div/div[3]/div/div/div/div[3]/ul/li[1]/ul/li/span
How can I get this value next to the title? So something like:
string titleString = "<div class=\"show\">" + time.InnerText + " - " + title.InnerText + "</div>";