1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.autoscout24.de/lst/bmw/3er-(alle)?_gl=1%2Aupdn2u%2A_up%2AMQ..%2A_gs%2AMQ..&atype=C&cy=D%2CA%2CB%2CE%2CF%2CI%2CL%2CNL&damaged_listing=exclude&desc=0&fregfrom=2015&gbraid=0AAAAAD3CGferPVpnUEJabzS65_jG3JCiy&gclid=CjwKCAjwx8nCBhAwEiwA_z__09Bjxjy42pxsAzmaLuS1T0_9ButUjmzyYnM5NsrRg0QdIpyzniMMwxoCSfEQAvD_BwE&kmto=150000&ocs_listing=include&powertype=kw&search_id=6iw7an03fz&sort=price&source=detailsearch&ustate=N%2CU" }],
10 "proxy": {
11 "useApifyProxy": True,
12 "apifyProxyGroups": ["RESIDENTIAL"],
13 },
14}
15
16
17run = client.actor("memo23/autoscout24-scraper").call(run_input=run_input)
18
19
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24