1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "search": {
10 "query": "Kuala Lumpur",
11 "checkIn": "",
12 "checkOut": "",
13 "adults": 2,
14 "children": 0,
15 "childAges": "",
16 "rooms": 1,
17 "limit": 20,
18 "offset": 0,
19 "propertyType": "any",
20 "starRatingMin": "0",
21 "reviewScoreMin": "0",
22 "cityCenterDistance": "any",
23 },
24 "property": {
25 "propertyId": 87219375,
26 "propertyUrl": "",
27 "checkIn": "",
28 "checkOut": "",
29 "adults": 2,
30 "children": 0,
31 "childAges": "",
32 "rooms": 1,
33 "enrichPricing": False,
34 },
35 "reviews": {
36 "propertyId": 61727253,
37 "propertyUrl": "",
38 "limit": 20,
39 "offset": 0,
40 "sortBy": "newest",
41 },
42}
43
44
45run = client.actor("crawlio/agoda-hotel-scraper").call(run_input=run_input)
46
47
48print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
49for item in client.dataset(run["defaultDatasetId"]).iterate_items():
50 print(item)
51
52