Trip Advisor help

Hi

Can anyone advise how to scrape the hotels section of TripAdvisor please?

I have managed to do the restaurants section but cant seem to get this section to work https://www.tripadvisor.co.uk/Hotels-g186216-United_Kingdom-Hotels.html

Can it be done?

Hi @Heather_Ryan

Of course, it can be done.

Here's a sitemap example:

{"_id":"tripadvisor","startUrl":["https://www.tripadvisor.co.uk/Hotels-g186216-United_Kingdom-Hotels.html"],"selectors":[{"id":"product-wrapper","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.listing","multiple":true,"delay":2000,"clickElementSelector":"span.next","clickType":"clickMore","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"listing-name","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"a.property_title","multiple":false,"regex":"","delay":0},{"id":"listing-url","type":"SelectorLink","parentSelectors":["product-wrapper"],"selector":"a.property_title","multiple":false,"delay":0},{"id":"review-count","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"a.review_count","multiple":false,"regex":"","delay":0},{"id":"review-rating","type":"SelectorElementAttribute","parentSelectors":["product-wrapper"],"selector":"a.ui_bubble_rating","multiple":false,"extractAttribute":"alt","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":".price-wrap div","multiple":false,"regex":"","delay":0}]}

Hope it helps.

Thank you for this but i am after the hotel website which when you click on that link comes up as a new page but when i have trid scraping it just says null? are you able to help with this?

Thanks!