Exclude selectors

Hello, is it possible to exclude selectors?

For example... I have elements A, B and C (let's call it body). Is it possible to exclude element C ?

Selector: (A + B) - C

I created a picture to try to explain myself better.

exlude selector

Inside body there are 4 images, 3 with "img" selectors and 1 with "img.attachment-medium" selector.

How could I scrape the images excluding img.attachment-medium?

Something like...

Type: Image
Selector: body - img.attachment-medium

Hi there @monmak

Yes, it is possible to exclude some of the elements by using the :not, :has, :contains jQuery selectors.

Useful resources:

https://webscraper.io/how-to-video/jquery-not-has-selector
https://webscraper.io/how-to-video/jquery-not-contains-selector