I want to scrape data with conditional

Hello guys, i want to scrape data from rightmove but i dont want the data if the property's lease is more than 80 years. is there any selector that i can use? Thank you.

Hi,

Can you please provide an example URL where this should be applied?

Hello, thank you for replying.
this is one of the data examples that i would like to include.
the lentgh of lease is less than 80 years old.

And this is the example of data that i would like to exclude, Tle year of lease is more than 80 years old.

Thank you.

It will, unfortunately, not be feasible to create a condition based on a relative value. You can create a condition based on something that is or is not in the HTML.

For example, you could discard all listings containing '90 years left' and '91 years left' by creating an Element type selector. The data selectors would have to be nested inside it.

html:not(:has(p:contains('90 years left'),p:contains('91 years left')))

1 Like

Thank you for your help, i'll try it as soo as possible.

isn't it better to scrape all data and filter in Excel all you need?.... )