1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchQuery": "",
11 "make": "",
12 "city": "",
13 "registeredIn": "",
14 "province": "",
15 "bodyType": "",
16 "fuelType": "",
17 "transmission": "",
18 "color": "",
19 "assembly": "",
20 "origin": "",
21 "category": "",
22 "doors": "",
23 "seats": "",
24 "sellerType": "",
25 "sunroof": False,
26 "inspectedOnly": False,
27 "auctionSheetVerified": False,
28 "managedByPakwheels": False,
29 "carMelaRegistered": False,
30 "featuredOnly": False,
31 "auctionedOnly": False,
32 "withPhotoOnly": False,
33 "withVideoOnly": False,
34 "fourWheelDriveOnly": False,
35 "sortOrder": "",
36 "maxItems": 3,
37 "includeDetails": False,
38 "listingUrls": [],
39 "searchUrls": [],
40 "proxyConfiguration": { "useApifyProxy": False },
41}
42
43
44run = client.actor("dataspryva/pakwheels-used-car-search-by-make-city-and-price").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51