jeudi 24 décembre 2020

scrapysharp I need to take only the region and realm fields with web scraping

I attach the image explaining what I want to do

Attached image I need to take only the region and realm fields with web scraping

var web = new HtmlWeb();
HtmlDocument doc = web.Load(uri);
List<string> Region = new List<string> ();
var page = doc.DocumentNode.SelectNodes("//div[@class='rt-td']");


foreach (var item in page)
{

    var first = item.SelectSingleNode("//div[@class='rt-td']");
    Region.Add(first.InnerText);
}



Aucun commentaire:

Enregistrer un commentaire