1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "productUrls": [
10 "https://www.autoscout24.com/offers/bmw-316-316d-touring-aut-diesel-white-cat_ma13mo1639-08391ca9-d1c4-42b7-ac00-27ba63d2fc78",
11 "https://www.autoscout24.com/offers/bmw-320-320i-high-executive-hud-sport-stoelen-leer-nette-a-gasoline-brown-cat_ma13mo1641-8d8d44f1-2556-43de-978b-be5c2eedf1b7",
12 "https://www.autoscout24.com/offers/bmw-318-3-serie-touring-318i-m-performance-eye-catcher-gasoline-blue-cat_ma13mo1640-0bb85b14-ee5e-4c25-8528-651c47b0bba3",
13 ],
14 "categoryUrls": ["https://www.autoscout24.com/lst/bmw/3-series"],
15}
16
17
18run = client.actor("123webdata/autoscout24-com-scraper").call(run_input=run_input)
19
20
21print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
22for item in client.dataset(run.default_dataset_id).iterate_items():
23 print(item)
24
25