1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "district": "Madrid",
10 "maxItems": 10,
11 "endPage": 50,
12 "startUrl": [],
13 "proxy": {
14 "useApifyProxy": True,
15 "apifyProxyGroups": ["RESIDENTIAL"],
16 },
17 "bedrooms": [],
18 "bathrooms": [],
19 "homeType": [],
20 "condition": [],
21 "propertyStatus": [],
22 "floorHeights": [],
23 "features": [],
24}
25
26
27run = client.actor("lukass/idealista-scraper").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34