1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "search_term": "Paris",
10 "buy_rent": "buy",
11 "property_types": [
12 "Houses",
13 "Apartments",
14 ],
15 "min_price": 0,
16 "max_price": 10000000,
17 "min_area": 0,
18 "min_area_field": 0,
19 "rooms_min": 0,
20 "rooms_max": 5,
21 "bedrooms_min": 0,
22 "bedrooms_max": 5,
23 "outside_access": [],
24 "floor": [],
25 "conditions": [],
26 "owner_types": [
27 "Private",
28 "Professional",
29 ],
30}
31
32
33run = client.actor("dadhalfdev/leboncoin-property-scraper").call(run_input=run_input)
34
35
36print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
37for item in client.dataset(run["defaultDatasetId"]).iterate_items():
38 print(item)
39
40