1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "proxyConfiguration": { "useApifyProxy": True },
10 "url": "https://www.copartmea.com/lotSearchResults?free=false&displayStr=Vehicles%20Under%207.5%20Tonnes,%5B0%20TO%209999999%5D,%5B2017%20TO%202027%5D&from=%2FvehicleFinder&fromSource=widget&qId=b5df7d38-16d5-4d90-948c-70d35e9352d6-1779093223350&searchCriteria=%7B%22query%22:%5B%22*%22%5D,%22filter%22:%7B%22ODM%22:%5B%22odometer_reading_received:%5B0%20TO%209999999%5D%22%5D,%22YEAR%22:%5B%22lot_year:%5B2017%20TO%202027%5D%22%5D,%22VEHT%22:%5B%22vehicle_type_code:VEHTYPE_V%22%5D,%22LOC%22:%5B%22yard_name:%5C%22Kizad%20-%20Abu%20Dhabi%5C%22%22%5D%7D,%22searchName%22:%22%22,%22watchListOnly%22:false,%22freeFormSearch%22:false%7D",
11 "maxItems": 7,
12}
13
14
15run = client.actor("sargis_aleksanyan/copart-middle-east").call(run_input=run_input)
16
17
18print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
19for item in client.dataset(run["defaultDatasetId"]).iterate_items():
20 print(item)
21
22