TripAdvisor Scraper avatar
TripAdvisor Scraper
Try for free

1 day trial then $20.00/month - No credit card required now

View all Actors
TripAdvisor Scraper

TripAdvisor Scraper

epctex/tripadvisor-scraper
Try for free

1 day trial then $20.00/month - No credit card required now

Explore with our Trip Advisor Scraper: an easy search for hotels, restaurants, attractions, and more by keywords or start URL. Enter check-in/out dates, and select currency and language. Promote locations, capture details, and retrieve emails and phone numbers if shared.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "search": "New York",
9    "checkInDate": "2025-01-01",
10    "checkOutDate": "2025-10-01",
11    "startUrls": [
12        "https://www.tripadvisor.com/Hotel_Review-g35805-d236299-Reviews-Sofitel_Chicago_Magnificent_Mile-Chicago_Illinois.html",
13        "https://www.tripadvisor.com/Hotels-g294200-Egypt-Hotels.html",
14        "https://www.tripadvisor.com/FindRestaurants?geo=32655&establishmentTypes=10591&mealTypes=10606&priceTypes=10955&broadened=false",
15        "https://www.tripadvisor.com/Tourism-g60763-New_York_City_New_York-Vacations.html",
16        "https://www.tripadvisor.com/Trips/122547544",
17    ],
18    "language": "en",
19    "currency": "USD",
20    "maxItems": 20,
21    "endPage": 1,
22    "extendOutputFunction": "($) => { return {} }",
23    "customMapFunction": "(object) => { return {...object} }",
24    "proxy": { "useApifyProxy": True },
25}
26
27# Run the Actor and wait for it to finish
28run = client.actor("epctex/tripadvisor-scraper").call(run_input=run_input)
29
30# Fetch and print Actor results from the run's dataset (if there are any)
31print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33    print(item)
34
35# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
  • 28 monthly users
  • 2 stars
  • 99.9% runs succeeded
  • 2.5 days response time
  • Created in Feb 2024
  • Modified 2 days ago