Need Help with Selectors for Scraping Review Ratings on TripAdvisor for Business

Hello everyone,

I’m trying to scrape review data from the TripAdvisor for Business page, specifically the ratings for individual review criteria like “Value,” “Service,” “Food,” and “Atmosphere.” Each rating is represented by a series of SVG bubbles, and each criterion is labeled with a corresponding name (e.g., “Value” or “Service”).

I need help creating the correct selectors to reliably scrape the rating for each criterion, even if some criteria are missing from the review. So far, I’m facing issues with the selectors not being flexible enough to handle missing criteria or variations in the HTML structure.

Can anyone guide me on how to build a robust CSS selector or XPath that works well with Bardeen.ai for this task?

Any help would be greatly appreciated!

Thank you in advance!

Hi Lucas,

Indeed Tripadvisor website requires custom approach for picking CSS selectors. Unfortunately, we do not have any instructions on how to pick the best selectors, this appears to be way too technical. But in case you will not be able to find a solution yourself, you can consider upgrading your account to a Business package which includes several hours of automation development by our engineers and our experts will help you.

Cheers,
Victoria

Customer Support - bardeen.ai
Knowledge Base https://support.bardeen.ai/hc/en-us
Explore | @bardeenai | Bardeen Community

Hi Victoria, thank you for your help.

I was able to perform the scrape by scraping the whole item and creating a script in google spreadsheets that identifies the score for each criterion and fills in the right cell.

Best,
Lucas

1 Like

Great workaround! Thank you for sharing with our community.

Cheers,
Victoria

Customer Support - bardeen.ai
Knowledge Base https://support.bardeen.ai/hc/en-us
Explore | @bardeenai | Bardeen Community

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.