Right selector wanted

hello

i have a delicate problem with a css selector and hope someone can help me. i have a table in the source with different class names in the rows and i only want to scrape cells of an unspecified class.

<table>
  <tr><td class="item">23</td></tr>
  <tr><td class="item">12</td></tr>
  <tr class="hidden"><td class="item">14</td></tr>
  <tr><td class="item">4</td></tr>
  <tr><td class="item">1</td></tr>
  <tr><td class="item">8</td></tr>
  <tr class="hidden"><td class="item">24</td></tr>
  <tr><td class="item">1</td></tr>
  <tr><td class="item">1</td></tr>
</table>

I would like to scrape all entries in td.item that do not have a parent tr class.
normally you can do this with the selector tr[!class], but in webscraper unfortunately it fails.

does anyone have any advice?

have a nice day!

Try:
tr:not([class])

1 Like

you made my day :slight_smile:

thank you!

1 Like