Go back

How to: Scrape multiple values in one row

Description:

To select only available options, find an attribute or class that is unique to the unavailable options and include it in ":not()" jQuery selector.

Sitemap:

{"_id":"web-scraper-group-selector","startUrl":["https://webscraper.io/test-sites/e-commerce/allinone/product/568"],"selectors":[{"id":"product-wrapper","type":"SelectorElement","parentSelectors":["_root"],"selector":"body","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"h4:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"h4.pull-right","multiple":false,"regex":"","delay":0},{"id":"memory","type":"SelectorGroup","parentSelectors":["product-wrapper"],"selector":"button.btn:not(.disabled)","delay":0,"extractAttribute":""}]}

Was this page helpful?