1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.booking.com/hotel/cz/jeromehouse.en-gb.html" }],
10 "searchQuery": "",
11 "checkIn": "",
12 "checkOut": "",
13 "maxReviewsPerHotel": 100,
14 "maxHotelsFromSearch": 5,
15 "sortReviewsBy": "f_relevance",
16 "filterByScore": "f_all_reviews",
17 "filterByTravelerType": "",
18 "filterByLanguage": "",
19 "cutoffDate": "",
20 "proxyConfiguration": { "useApifyProxy": True },
21}
22
23
24run = client.actor("khadinakbar/booking-reviews-scraper").call(run_input=run_input)
25
26
27print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31