1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "listings": [
10 {
11 "title": "Appartement 2 pièces 45 m²",
12 "price": 445000,
13 "surface": 45,
14 "rooms": 2,
15 "propertyType": "Appartement",
16 "latitude": 48.8537,
17 "longitude": 2.3709,
18 "zipcode": "75011",
19 "city": "Paris",
20 "url": "https://example.com/annonce-1",
21 },
22 {
23 "title": "Appartement 3 pièces 68 m²",
24 "price": 395000,
25 "surface": 68,
26 "rooms": 3,
27 "propertyType": "Appartement",
28 "zipcode": "69003",
29 "city": "Lyon",
30 "url": "https://example.com/annonce-2",
31 },
32 {
33 "title": "Maison 5 pièces 120 m²",
34 "price": 520000,
35 "surface": 120,
36 "rooms": 5,
37 "propertyType": "Maison",
38 "zipcode": "33000",
39 "city": "Bordeaux",
40 "url": "https://example.com/annonce-3",
41 },
42 ],
43 "fieldMapping": {},
44}
45
46
47run = client.actor("kris_fili/seloger-leboncoin-deal-checker").call(run_input=run_input)
48
49
50print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
51for item in client.dataset(run.default_dataset_id).iterate_items():
52 print(item)
53
54