1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "startUrls": [
9 {
10 "url": "https://www.expedia.com/Prague-Hotels-Hotel-Krystal.h10966026.Hotel-Information",
11 "method": "GET",
12 "userData": {
13 "hotel": "Prague Hotel Krystal",
14 "doWeEndorseIt": "no opinion",
15 },
16 },
17 {
18 "url": "https://www.expedia.it/en/Berchtesgaden-Hotels-Alpensport-Hotel-Seimler.h2692552.Hotel-Information",
19 "method": "GET",
20 "userData": {
21 "your": [
22 "custom",
23 "data",
24 "goes",
25 "here",
26 ],
27 "doWeEndorseThisHotel": "no opinion",
28 },
29 },
30 ] }
31
32
33run = client.actor("tri_angle/expedia-hotels-com-reviews-scraper").call(run_input=run_input)
34
35
36print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
37for item in client.dataset(run["defaultDatasetId"]).iterate_items():
38 print(item)
39
40