Unable to scrape text values

Hi,

I'm trying to scrape some text data from a web page that has multiple pages, I've got the scraper automatically going through the pages using the Selector Element, however it never gets any data from the pages.

I think it's because of how they are displayed, for example...

<tr>
<td class="data-text">Year to date</td>
<td class="data-num" data-bind="text:Main.helpers.formatCurrency(YTDSales())">£10.00</td>
<td class="data-num" data-bind="text: Main.helpers.formatCurrency(YTDProfit())">£2.00</td>
</tr>

I think I need to somehow select them by the attribute, but I'm not sure how I would do this? Is it possible to capture this text?

Thanks

Can you share the sitemap? It is hard to tell what is wrong from the description.

An element can be selected by an attribute with a custom css selector. In this case you could write something like this - td[data-bind*='YTDProfit'] to select the £2.00 element.

1 Like