I need assistance with parsing a website I have found here:
https://i.sstatic.net/GdFN1.png
My goal is to extract information from specific fields that have IDs and classnames:
label =
node.SelectSingleNode(
".//h3[@class='item_header']"
).InnerText.Replace("Label: ","").Trim();
Console.WriteLine(label);
However, I am struggling to retrieve the text contained in tags without any IDs or classes, like in the example below:
https://i.sstatic.net/74Wxf.png
How can I extract the text inside tags that lack identifiers, such as the following?
<b>Label Cat. #: WEST 3007/8</b>
If it helps, here is the unique selector for reference:
#\31 42248 > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > b:nth-child(1)