1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.hostelworld.com/hostels/p/88047/wombat-s-city-hostel-london/" }],
10 "maxReviewsPerProperty": 10,
11 "maxReviews": 10,
12}
13
14
15run = client.actor("automation-lab/hostelworld-guest-reviews-scraper").call(run_input=run_input)
16
17
18print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
19for item in client.dataset(run.default_dataset_id).iterate_items():
20 print(item)
21
22