1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "from": "AMM",
10 "to": "LHR",
11 "departDate": "+45d",
12 "routes": [{
13 "from": "DXB",
14 "to": "CAI",
15 "departDate": "+30d",
16 "returnDate": "+37d",
17 "adults": 2,
18 "targetPrice": 350,
19 }],
20 "currency": "USD",
21 "mode": "watch",
22 "proxyConfiguration": { "useApifyProxy": True },
23}
24
25
26run = client.actor("almoutasem_nabil/google-flights-price-watch").call(run_input=run_input)
27
28
29print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
30for item in client.dataset(run.default_dataset_id).iterate_items():
31 print(item)
32
33