Riven Joy
foreach (var row in Table.SelectNodes("tbody/tr"))
My Code is
using System.Text; using System.Threading.Tasks; using ScrapySharp.Network; using HtmlAgilityPack; using ScrapySharp.Extensions; namespace Scrapping { class Program { static void Main(string[] args) { ScrapingBrowser Browser = new ScrapingBrowser(); Browser.AllowAutoRedirect = true; // Browser has settings you can access in setup Browser.AllowMetaRedirect = true; WebPage PageResult = Browser.NavigateToPage(new Uri("http://signalspremium.com/trading-resources-information-center/?tmpl=component")); HtmlNode TableNode = PageResult.Html.CssSelect(".stable").First(); var Table = PageResult.Html.CssSelect(".stable").First(); List<string> Names = new List<string>(); foreach (var row in Table.SelectNodes("tbody/tr")) { foreach (var cell in row.SelectNodes("th")) { Names.Add(cell.InnerText); Console.WriteLine(Names); Console.ReadLine(); } } } } }