1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "reviews",
10 "hotels": [
11 "https://www.hrs.com/en/hotel/519245",
12 "10369",
13 "Radisson Blu Hotel Bremen",
14 ],
15 "maxReviewsPerHotel": 200,
16 "travellerType": "ALLHRS",
17 "reviewsFrom": "",
18 "onlyWithText": False,
19 "includeHotelReplies": True,
20 "places": [
21 "Munich",
22 "Vienna",
23 ],
24 "maxHotelsPerPlace": 100,
25}
26
27
28run = client.actor("sian.agency/hrs-hotel-reviews-scraper").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35