I'm trying to scrape data from foursquare.com with webscraper.io:
Hotels W12
but am having a problem extracting images from the banner as they are stored in a carousel:
Dorsett Shepherds Bush - Hotel in Shepherd's Bush
Using Element click selector I got the scraper to step through the images in the carousel but can't extract the images.
Url: Dorsett Shepherds Bush - Hotel in Shepherd's Bush
Sitemap:
{"_id":"hotels4sq","startUrl":["https://foursquare.com/explore?mode=url&near=W12&nearGeoId=149463212633404584&q=Hotel"],"selectors":[{"id":"links","parentSelectors":["_root"],"type":"SelectorLink","selector":".hasPhoto.tipWithLogging h2 a","multiple":true,"linkType":"linkFromHref"},{"id":"name","parentSelectors":["links"],"type":"SelectorText","selector":"h1","multiple":false,"regex":""},{"id":"address","parentSelectors":["links"],"type":"SelectorText","selector":"div[itemprop='address']","multiple":false,"regex":""},{"id":"phone","parentSelectors":["links"],"type":"SelectorText","selector":"span[itemprop='telephone']","multiple":false,"regex":""},{"id":"website","parentSelectors":["links"],"type":"SelectorLink","selector":"a.url","multiple":false,"linkType":"linkFromHref"},{"id":"thumbnail","parentSelectors":["links"],"type":"SelectorElementClick","clickActionType":"real","clickElementSelector":".photo.photoWithContent img","clickElementUniquenessType":"uniqueHTMLText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":".photoWithContent img"},{"id":"carousel","parentSelectors":["thumbnail"],"type":"SelectorElementAttribute","selector":".photo.photoWithContent img","multiple":false,"extractAttribute":"src"}]}