Webscraping with Webscraper.io

Job ID: 35253530

Budget: $10 – $30 USD

Using the webscraper.io Chrome extension, I'm trying to limit the amount of images extracted from a page to 6. I got advice from the forum.

I modified the selector but it didn't work, can you find a solution for this problem?

See attachment for info.

"Hi, yes, it is possible to limit the number of extractable images to 6 by using the jQuery selector ':nth-of-type', more specifically - div[data-testid="page"] > div > div:nth-of-type(-n+6) div[data-testid="thumbnail"] img"

Sitemap:

{"_id":"music_shop_yelp_test","startUrl":["https://www.yelp.co.uk/search?find_desc=music+shop&find_loc=London"],"selectors":[{"id":"links","multiple":true,"parentSelectors":["_root"],"selector":".css-1egxyvc a","type":"SelectorLink"},{"id":"business-page-wrapper","multiple":true,"parentSelectors":["links"],"selector":"html:has(div[data-hypernova-key*=\"BizDetails\"]):has(h1)","type":"SelectorElement"},{"clickElementSelector":"div[class*=\"photo-header-content-container\"] a:contains(\"photos\")","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":2000,"discardInitialElements":"discard-when-click-element-exists","id":"photo-click","multiple":true,"parentSelectors":["business-page-wrapper"],"selector":"div[data-testid=\"page\"]","type":"SelectorElementClick"},{"extractAttribute":"src","id":"images","parentSelectors":["business-page-wrapper"],"selector":"div[data-testid=\"thumbnail\"] img","type":"SelectorGroup"},{"id":"name","multiple":false,"parentSelectors":["business-page-wrapper"],"regex":"","selector":"h1","type":"SelectorText"},{"id":"address","multiple":false,"parentSelectors":["business-page-wrapper"],"regex":"","selector":"p.css-qyp8bo","type":"SelectorText"}]}

Page:

https://www.yelp.co.uk/biz/macaris-london-3?osq=music+shop

On the left same page you will see an address with a map & an opening times table. I just want the address text & the table, I had to grab the address on the right under "Directions".
Related categories: JavaScript Web Scraping Google Chrome