1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "data_freshness": "live",
10 "runMode": "sample",
11 "maxItems": 10,
12 "cat_metalworking": False,
13 "cat_woodworking": False,
14 "cat_construction": False,
15 "cat_transport": False,
16 "cat_agricultural": False,
17 "cat_tools": False,
18 "cat_more_industrial": False,
19 "cat_retail_office": False,
20 "brand_caterpillar": False,
21 "brand_komatsu": False,
22 "brand_liebherr": False,
23 "brand_volvo": False,
24 "brand_jcb": False,
25 "brand_hitachi": False,
26 "brand_john_deere": False,
27 "brand_kubota": False,
28 "brand_linde": False,
29 "brand_still": False,
30 "brand_jungheinrich": False,
31 "brand_toyota": False,
32 "brand_mazak": False,
33 "brand_jlg": False,
34 "brand_genie": False,
35 "country_de": False,
36 "country_nl": False,
37 "country_it": False,
38 "country_be": False,
39 "country_fr": False,
40 "country_ro": False,
41 "country_pl": False,
42 "country_cz": False,
43 "country_at": False,
44 "country_hr": False,
45 "country_es": False,
46 "country_pt": False,
47 "country_ch": False,
48 "datasetName": "surplex-data",
49 "outputSchema": "ftp28",
50 "proxyConfiguration": { "useApifyProxy": True },
51}
52
53
54run = client.actor("rastriq/surplex-auction-scraper").call(run_input=run_input)
55
56
57print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
58for item in client.dataset(run["defaultDatasetId"]).iterate_items():
59 print(item)
60
61