Go back

How to: Select elements that don’t have a specific element

Sitemap:

{"_id":"web-scraper-jquery-not-has","startUrl":["https://webscraper.io/test-sites/e-commerce/allinone/computers/laptops"],"selectors":[{"id":"product-wrapper","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.thumbnail:not(:has(p[data-rating='1']))","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"a","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"h4.pull-right","multiple":false,"regex":"","delay":0},{"id":"reviews","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"p.pull-right","multiple":false,"regex":"","delay":0}]}

Was this page helpful?