1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "query": [
10 {
11 "origin": "los angeles",
12 "dropoff": "san francisco",
13 "datefrom": "250901",
14 "timefrom": "10:00",
15 "dateto": "250902",
16 "timeto": "10:30",
17 "age": "30",
18 "seating": "5",
19 "transmission": "any",
20 },
21 {
22 "origin": "paris",
23 "dropoff": "",
24 "datefrom": "250801",
25 "timefrom": "14:00",
26 "dateto": "250815",
27 "timeto": "10:30",
28 "age": "19",
29 "seating": "any",
30 "transmission": "manual",
31 },
32 ],
33 "blocklist": ["Rentingcarz"],
34 "proxy": {
35 "useApifyProxy": True,
36 "apifyProxyGroups": ["BUYPROXIES94952"],
37 },
38}
39
40
41run = client.actor("canadesk/car-hire-rental-bulk").call(run_input=run_input)
42
43
44print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
45for item in client.dataset(run["defaultDatasetId"]).iterate_items():
46 print(item)
47
48