1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "departureAirports": [
10 "LTN",
11 "SOF",
12 ],
13 "arrivalAirports": ["BUD"],
14 "tripType": "oneWay",
15 "daysAheadStart": 1,
16 "daysAheadEnd": 30,
17 "adults": 1,
18 "children": 0,
19 "infants": 0,
20 "wizzDiscountClub": False,
21 "sortBy": "cheapest",
22 "dayInterval": 9,
23 "maxResultsPerRoute": 10,
24}
25
26
27run = client.actor("benthepythondev/wizzair-flight-scraper").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34