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-320-i-touring-pdc-klima-tempo-gasoline-grey-cat_ma13mo1641-8e533485-0218-425c-9c01-0ff3810fbca1",
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-325-3-serie-325i-high-executive-schuifdak-gasoline-grey-cat_ma13mo1644-2a5aa1c1-c473-406f-b66b-d8d7aef01d01",
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