1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchMode": "location",
10 "locations": ["Berlin"],
11 "realEstateType": "apartmentrent",
12 "maxResults": 3,
13 "includeDetails": True,
14 "sorting": "newest",
15 "minPrice": 0,
16 "maxPrice": 1000000,
17 "minLivingSpace": 0,
18 "maxLivingSpace": 10000,
19 "minRooms": 0,
20 "maxRooms": 100,
21 "minConstructionYear": 1000,
22 "maxConstructionYear": 2100,
23 "apartmentTypes": [],
24 "buildingTypes": [],
25 "energyEfficiencyClasses": [],
26 "equipment": [],
27 "heatingTypes": [],
28 "petsAllowed": "any",
29 "exclusionCriteria": [],
30 "osmTags": [],
31 "listingTags": [],
32 "fullText": "",
33 "publishedAfter": "1970-01-01",
34}
35
36
37run = client.actor("datascraperes/immoscout24-property-scraper").call(run_input=run_input)
38
39
40print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44