1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "search": {
10 "query": "New York",
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": "any",
21 "reviewScoreMin": "any",
22 "cityCenterDistance": "any",
23 "freeCancellation": False,
24 "breakfastIncluded": False,
25 "internet": False,
26 "parking": False,
27 "airportTransfer": False,
28 "gymFitness": False,
29 "swimmingPool": False,
30 "entireHomesApartments": False,
31 "familyFriendlyProperties": False,
32 "allInclusive": False,
33 "breakfastDinnerIncluded": False,
34 "selfCatering": False,
35 "allMealsIncluded": False,
36 "breakfastLunchIncluded": False,
37 "petsAllowed": False,
38 "freeWifi": False,
39 "paidParking": False,
40 "familyRooms": False,
41 "spaWellness": False,
42 "frontDesk24h": False,
43 "restaurant": False,
44 "bbqFacilities": False,
45 "airportShuttleFree": False,
46 "nonSmokingRooms": False,
47 "wheelchairAccessible": False,
48 "roomService": False,
49 "evChargingStation": False,
50 "airConditioning": False,
51 "kitchenKitchenette": False,
52 "washingMachine": False,
53 "balcony": False,
54 "privateBathroom": False,
55 "terrace": False,
56 "kitchenette": False,
57 "view": False,
58 "bath": False,
59 "flatScreenTv": False,
60 "electricKettle": False,
61 "coffeeTeaMaker": False,
62 "coffeeMachine": False,
63 "soundproofing": False,
64 "desk": False,
65 "cots": False,
66 "doubleBed": False,
67 "twoSingleBeds": False,
68 "familyTravelGroup": False,
69 "travelProud": False,
70 "sustainabilityCertification": False,
71 "acceptsOnlinePayments": False,
72 "upperFloorsElevator": False,
73 "groundFloorUnit": False,
74 "wheelchairAccessibleUnit": False,
75 "walkInShower": False,
76 "adaptedBath": False,
77 "rollInShower": False,
78 "showerChair": False,
79 "emergencyCordBathroom": False,
80 "toiletGrabRails": False,
81 "raisedToilet": False,
82 "loweredSink": False,
83 "auditoryGuidance": False,
84 "tactileSigns": False,
85 "braille": False,
86 "accessibleToiletGrabRails": False,
87 "accessibleEmergencyCordBathroom": False,
88 "accessibleRaisedToilet": False,
89 "accessibleLowerBathroomSink": False,
90 "minBedrooms": "any",
91 "minBathrooms": "any",
92 "minBeds": "any",
93 },
94 "property": {
95 "propertyId": 1397916,
96 "propertyUrl": "",
97 "checkIn": "",
98 "checkOut": "",
99 "adults": 2,
100 "children": 0,
101 "childAges": [],
102 "rooms": 1,
103 "enrichPricing": False,
104 "includeQAndA": False,
105 },
106 "reviews": {
107 "propertyId": 1397916,
108 "propertyUrl": "",
109 "limit": 20,
110 "offset": 0,
111 "sortBy": "newest",
112 },
113}
114
115
116run = client.actor("crawlio/booking-com-scraper").call(run_input=run_input)
117
118
119print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
120for item in client.dataset(run["defaultDatasetId"]).iterate_items():
121 print(item)
122
123