1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "urls": [
11 "https://www.immoweb.be/en/search/house/for-sale?countries=BE&page=1&orderBy=newest",
12 "https://www.immoweb.be/en/search/house/for-sale?countries=BE&page=2&orderBy=newest",
13 "https://www.immoweb.be/en/search/house-and-apartment/for-rent?countries=BE&postalCodes=BE-1000&minPrice=500&maxPrice=1500&orderBy=cheapest",
14 "https://www.immoweb.be/nl/zoeken/huis/te-koop?countries=BE&page=1",
15 "https://www.immoweb.be/fr/recherche/maison/a-vendre?countries=BE&page=1",
16 "https://www.immoweb.be/en/search/apartment/for-sale/brussels/province?countries=BE",
17 "https://www.immoweb.be/en/search/house/for-sale/antwerpen/2000?countries=BE",
18 "https://www.immoweb.be/en/search/new-real-estate-project-houses/for-sale",
19 "https://www.immoweb.be/en/classified/apartment/for-sale/aalst-9300/9300/21925957",
20 "https://www.immoweb.be/en/classified/21925957",
21 "https://www.immoweb.be/en/agency/immo-bastogne-sa/318779",
22 ],
23 "proxyConfiguration": {
24 "useApifyProxy": True,
25 "apifyProxyGroups": [],
26 },
27 "ignoreFieldsForChanges": [],
28}
29
30
31run = client.actor("abotapi/immoweb-scraper").call(run_input=run_input)
32
33
34print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38