1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "hotels": ["Marina Bay Sands Singapore"],
10 "startDate": "1 day",
11 "days": 30,
12 "proxyConfiguration": {
13 "useApifyProxy": True,
14 "apifyProxyGroups": ["RESIDENTIAL"],
15 "apifyProxyCountry": "US",
16 },
17}
18
19
20run = client.actor("stayscope/google-hotels-price-tracker").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27