Expedia & Hotels.com reviews scraper avatar
Expedia & Hotels.com reviews scraper
Try for free

No credit card required

View all Actors
Expedia & Hotels.com reviews scraper

Expedia & Hotels.com reviews scraper

tri_angle/expedia-hotels-com-reviews-scraper
Try for free

No credit card required

Scraper to get reviews from URLs of hotels, apartments and other accommodations listed on Expedia.com and Hotels.com portals

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 mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        {
12            "url": "https://www.expedia.com/Prague-Hotels-Hotel-Krystal.h10966026.Hotel-Information",
13            "method": "GET",
14            "userData": {
15                "hotel": "Prague Hotel Krystal",
16                "doWeEndorseIt": "no opinion"
17            }
18        },
19        {
20            "url": "https://www.expedia.it/en/Berchtesgaden-Hotels-Alpensport-Hotel-Seimler.h2692552.Hotel-Information",
21            "method": "GET",
22            "userData": {
23                "your": [
24                    "custom",
25                    "data",
26                    "goes",
27                    "here"
28                ],
29                "doWeEndorseThisHotel": "no opinion"
30            }
31        }
32    ]
33};
34
35(async () => {
36    // Run the Actor and wait for it to finish
37    const run = await client.actor("tri_angle/expedia-hotels-com-reviews-scraper").call(input);
38
39    // Fetch and print Actor results from the run's dataset (if any)
40    console.log('Results from dataset');
41    const { items } = await client.dataset(run.defaultDatasetId).listItems();
42    items.forEach((item) => {
43        console.dir(item);
44    });
45})();
Developer
Apify logo Maintained by Apify
Actor metrics
  • 21 monthly users
  • 100.0% runs succeeded
  • 3.2 days response time
  • Created in Mar 2023
  • Modified 2 months ago
Categories

You might also like these Actors