Tripadvisor Image Scraper
2 hours trial then $9.00/month - No credit card required now
Tripadvisor Image Scraper
2 hours trial then $9.00/month - No credit card required now
Efficiently scrape images from TripAdvisor restaurant pages with this Apify actor. Extract image URLs, alt text, user info, dates, and ratings. Supports multiple start URLs and configurable image limits. Uses residential proxies for reliable access.
This Apify actor scrapes images and related information from TripAdvisor restaurant pages.
Features
- Extracts images from TripAdvisor restaurant review pages
- Collects image URL, alt text, user information, date, and rating
- Supports multiple start URLs
- Configurable maximum number of images per URL
- Uses residential proxies for better access
Input
The actor accepts the following input parameters:
startUrls
(array): List of TripAdvisor restaurant review URLs to scrapemaxImagesPerUrl
(integer): Maximum number of images to extract per URL (default: 40)
Example input:
1{ 2 "startUrls": [ 3 { 4 "url": "https://www.tripadvisor.com/Restaurant_Review-g186338-d8833735-Reviews-Oxbo_Bankside-London_England.html" 5 }, 6 { 7 "url": "https://www.tripadvisor.com/Restaurant_Review-g186338-d14134252-Reviews-Scarlett_Green-London_England.html" 8 } 9 ], 10 "maxImagesPerUrl": 30 11}
Output
The actor outputs a dataset with the following fields:
sourceUrl
: The original URL of the review pagesrc
: The URL of the imagealt
: The alt text of the imageuser
: The user who posted the reviewmonthYear
: The month and year of the reviewrating
: The rating of the review out of 5
Example output:
1{ 2 "sourceUrl": "https://www.tripadvisor.com/Restaurant_Review-g1319185-d7258141-Reviews-Vol_Ver-Marke_Kortrijk_West_Flanders_Province.html", 3 "src": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/20/ce/10/f2/caption.jpg?w=1000&h=-1&s=1", 4 "alt": "", 5 "info": "Alexander", 6 "monthYear": "Oct 2021", 7 "rating": 5 8}
Usage
To use this Actor, follow these steps:
-
Set up your input: Prepare a JSON object with the
startUrls
array containing the TripAdvisor restaurant review URLs you want to scrape, and optionally set themaxImagesPerUrl
value. -
Run the Actor: You can run the Actor through the Apify Console, API, or using the Apify CLI.
-
Retrieve the results: Once the Actor has finished running, you can access the scraped data in the "Dataset" tab of your Actor run, or via the Apify API.
- 2 monthly users
- 1 star
- 100.0% runs succeeded
- Created in Oct 2024
- Modified 26 days ago