Xpath to collect data

Asked

Viewed 76 times

1

I’m developing a bot to capture certain information from websites, but when I try to collect the information related to the description of the item collected, it does not go through the while effectuating the other collections.

It saves different information, but adds the same description for all items.

Follow the code excerpt:

var target = trs[tr_num].SelectNodes("//button[@class='btn btn-default']")
    [0].Attributes["data-target"].Value.CopyAfter("#").Trim();

string xpathCompara = ("//section[@id='about']/div[@id='" + target + "']");
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.