1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sourceMode": "auto",
10 "sourceUrls": [{ "url": "https://www.dubicars.com/dubai/new" }],
11 "keyword": "",
12 "make": "",
13 "model": "",
14 "condition": "any",
15 "sellerType": "any",
16 "bodyType": "",
17 "fuelType": "",
18 "emirate": "",
19 "regionalSpecs": "",
20 "exportStatus": "any",
21 "minPrice": 0,
22 "maxPrice": 100000000,
23 "minYear": 0,
24 "maxYear": 2100,
25 "maxMileageKm": 100000000,
26 "sourceFailurePolicy": "continueAndReport",
27 "runMode": "snapshot",
28 "monitorScope": "",
29 "detailLevel": "auto",
30 "includeImages": True,
31 "includeDescription": True,
32 "includeSellerProfile": True,
33 "maxItems": 10,
34 "maxPagesPerSource": 1,
35 "maxDetailPages": 10,
36 "maxImagesPerListing": 8,
37 "emitUnchanged": False,
38 "maxConcurrency": 1,
39 "requestDelayMs": 1000,
40 "proxyConfiguration": {
41 "useApifyProxy": True,
42 "apifyProxyGroups": ["RESIDENTIAL"],
43 "apifyProxyCountry": "AE",
44 },
45}
46
47
48run = client.actor("getascraper/dubicars-scraper").call(run_input=run_input)
49
50
51print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
52for item in client.dataset(run.default_dataset_id).iterate_items():
53 print(item)
54
55