1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.booking.com/searchresults.en-gb.html?ss=Da+Lat&ssne=Da+Lat&ssne_untouched=Da+Lat&efdco=1&label=gen173nr-10CAQoggJCDXNlYXJjaF9kYSBsYXRICVgEaPQBiAEBmAEzuAEXyAEM2AED6AEB-AEBiAIBqAIBuALXyPLLBsACAdICJDBkOWY1MDA3LTA5NTAtNGY3ZS04NWMwLWJjYTRmMzNiMmM2Y9gCAeACAQ&aid=304142&lang=en-gb&sb=1&src_elem=sb&src=searchresults&dest_id=-3712045&dest_type=city&checkin=2026-02-16&checkout=2026-02-21&group_adults=2&no_rooms=1&group_children=0" }],
10 "maxPages": 1,
11 "proxyConfig": {
12 "useApifyProxy": True,
13 "apifyProxyGroups": ["RESIDENTIAL"],
14 "apifyProxyCountry": "VN",
15 },
16}
17
18
19run = client.actor("dtrungtin/simple-booking-scraper").call(run_input=run_input)
20
21
22print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
23for item in client.dataset(run["defaultDatasetId"]).iterate_items():
24 print(item)
25
26