langehk
langehk
CC#
Created by langehk on 7/11/2023 in #help
❔ ConnectionString to Azure SQL Server
5 replies
CC#
Created by langehk on 7/9/2023 in #help
❔ Scrape with HtmlAgilityPack
Hi. I'm trying to get the values on line 5 and 14. I've tried to get the span by class. However the InnerText is just an empty string.
var desc = childNode.SelectSingleNode("(//span[contains(@class, 'ux-textspans')])");
var desc = childNode.SelectSingleNode("(//span[contains(@class, 'ux-textspans')])");
Other spans on the site has id's which makes it a lot easier, but I can't figure out how to retrieve the value, when multiple spans has the same class. In this case there is 11 "fields/properties" listed with the same class. And I would only need some of them.
<div class=\"ux-layout-section-evo__col\">
<div class=\"ux-labels-values__labels\">
<div class=\"ux-labels-values__labels-content\">
<div>
<span class=\"ux-textspans\">Condition</span>
</div>
</div>
</div>
<div class=\"ux-labels-values__values\">
<div class=\"ux-labels-values__values-content\">
<div>
<span class=\"ux-expandable-textual-display-block-inline\">
<span data-testid=\"text\">
<span class=\"ux-textspans\">New with tags: A brand-new, unused, and unworn item (including handmade items) in the original ... </span>
<div class=\"ux-layout-section-evo__col\">
<div class=\"ux-labels-values__labels\">
<div class=\"ux-labels-values__labels-content\">
<div>
<span class=\"ux-textspans\">Condition</span>
</div>
</div>
</div>
<div class=\"ux-labels-values__values\">
<div class=\"ux-labels-values__values-content\">
<div>
<span class=\"ux-expandable-textual-display-block-inline\">
<span data-testid=\"text\">
<span class=\"ux-textspans\">New with tags: A brand-new, unused, and unworn item (including handmade items) in the original ... </span>
7 replies