1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "portal": "ZAP",
10 "business": ["SALE"],
11 "listingType": ["USED"],
12 "usageTypes": ["RESIDENTIAL"],
13 "states": ["SP"],
14 "cities": ["sao-paulo"],
15 "maxListings": 100,
16 "maxPagesPerTask": 10,
17 "pageSize": 30,
18 "requestDelayMs": 500,
19 "maxConcurrency": 2,
20 "maxRetries": 3,
21 "proxyConfiguration": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 "apifyProxyCountry": "BR",
25 },
26}
27
28
29run = client.actor("parsebird/zap-imoveis-scraper").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36