1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "service": "flights",
10 "market": "skyscanner.net",
11 "origin": "bkk",
12 "destination": "sin",
13 "place": "",
14 "placeSlug": "",
15 "entityId": "",
16 "geoId": "",
17 "hotelUrl": "",
18 "flightUrl": "",
19 "departureDate": "",
20 "returnDate": "",
21 "checkin": "",
22 "checkout": "",
23 "tripType": "roundtrip",
24 "adults": 1,
25 "children": 0,
26 "childrenv2": "",
27 "rooms": 1,
28 "cabinclass": "economy",
29 "driverAge": 30,
30 "preferDirects": False,
31 "dropoffGeoId": "",
32 "sort": "",
33 "includeDetail": False,
34 "maxResults": 1,
35 "workerBaseUrl": "",
36}
37
38
39run = client.actor("lentic_clockss/skyscanner-scraper").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46