1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchDestinations": [],
10 "searchCities": [],
11 "propertyUrls": ["https://www.agoda.com/marina-bay-sands/hotel/singapore-sg.html"],
12 "dateMatrix": {
13 "startFrom": "today",
14 "scanDays": 14,
15 "lengthOfStay": 2,
16 "stride": 1,
17 },
18 "skipPropertyIds": [],
19 "proxyConfiguration": {
20 "useApifyProxy": True,
21 "apifyProxyGroups": ["RESIDENTIAL"],
22 },
23}
24
25
26run = client.actor("bestscraper/agoda-property-scraper").call(run_input=run_input)
27
28
29print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31 print(item)
32
33