1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "locations": ["Capital Federal"],
11 "urls": [
12 "https://www.zonaprop.com.ar/departamentos-venta-palermo.html",
13 "https://www.zonaprop.com.ar/departamentos-venta-palermo-pagina-2.html",
14 "https://www.zonaprop.com.ar/inmuebles-venta-capital-federal.html",
15 "https://www.zonaprop.com.ar/casas-venta-cordoba.html",
16 "https://www.zonaprop.com.ar/departamentos-venta-palermo-orden-precio-ascendente.html",
17 "https://www.zonaprop.com.ar/departamentos-alquiler-capital-federal-2-ambientes.html",
18 "https://www.zonaprop.com.ar/departamentos-venta-palermo-2-habitaciones.html",
19 "https://www.zonaprop.com.ar/departamentos-venta-palermo-mas-de-2-banos.html",
20 "https://www.zonaprop.com.ar/departamentos-venta-palermo-100000-200000-dolar.html",
21 "https://www.zonaprop.com.ar/departamentos-venta-palermo-menos-200000-dolar.html",
22 "https://www.zonaprop.com.ar/departamentos-venta-palermo-con-pileta.html",
23 "https://www.zonaprop.com.ar/departamentos-alquiler-temporal-palermo.html",
24 "https://www.zonaprop.com.ar/propiedades/clasificado/veclapin-venta-duplex-2-ambientes-con-cochera-en-palermo-60051784.html",
25 "https://www.zonaprop.com.ar/inmobiliarias/aguilar-bugeau-valor-inmobiliario_30351457-inmuebles.html",
26 ],
27 "proxy": {
28 "useApifyProxy": True,
29 "apifyProxyGroups": ["RESIDENTIAL"],
30 "apifyProxyCountry": "AR",
31 },
32 "incrementalMode": False,
33 "emitUnchanged": False,
34 "emitExpired": False,
35}
36
37
38run = client.actor("abotapi/zonaprop-scraper").call(run_input=run_input)
39
40
41print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45