1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchQuery": "cykel",
11 "category": "",
12 "subCategory": "",
13 "productCategory": "",
14 "sortBy": "RELEVANCE",
15 "location": "",
16 "subLocation": "",
17 "condition": "",
18 "tradeType": "",
19 "dealerSegment": "",
20 "shippingType": "",
21 "boundingBox": "",
22 "publishedToday": False,
23 "brandQuery": "",
24 "itemIds": [],
25 "shopSlug": "",
26 "vehicleType": "car",
27 "carVariant": "",
28 "fuelType": "",
29 "transmissionType": "",
30 "bodyType": "",
31 "wheelDrive": "",
32 "carDealerSegment": "",
33 "registrationClass": "",
34 "exteriorColour": "",
35 "carEquipment": "",
36 "warrantyInsurance": "",
37 "carCondition": "",
38 "wheelSets": "",
39 "maxItems": 50,
40}
41
42
43run = client.actor("crawlerbros/dba-dk-scraper").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50