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": [
15 "https://www.autoscout24.com/lst/bmw/3-series",
16 "https://www.autoscout24.com/lst/bmw",
17 "https://www.autoscout24.com/lst/bmw/3-series?atype=C&cy=D&priceto=20000&sort=price&desc=1",
18 ],
19 "usePagination": True,
20}
21
22
23run = client.actor("123webdata/autoscout24-com-scraper").call(run_input=run_input)
24
25
26print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
27for item in client.dataset(run.default_dataset_id).iterate_items():
28 print(item)
29
30