1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "hotels": [
10 "Savoy Le Grand Hotel Marrakech",
11 "ibis Marrakech Palmeraie",
12 ],
13 "searches": ["hotels in Marrakech"],
14 "checkInDaysAhead": [
15 7,
16 30,
17 ],
18 "checkInDates": [],
19 "proxyConfiguration": {
20 "useApifyProxy": True,
21 "apifyProxyGroups": ["RESIDENTIAL"],
22 "apifyProxyCountry": "US",
23 },
24}
25
26
27run = client.actor("mouad-abbar/google-hotels-price-monitor").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34