1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "locations": ["Austin, TX"],
11 "listingType": "FOR_SALE",
12 "startUrls": [
13 "https://www.zillow.com/homes/for_sale/Austin,-TX/",
14 "https://www.zillow.com/austin-tx/",
15 "https://www.zillow.com/austin-tx/2_p/",
16 "https://www.zillow.com/homes/for_rent/Austin,-TX/",
17 "https://www.zillow.com/homedetails/1600-Pennsylvania-Ave-NW-Washington-DC-20500/84074482_zpid/",
18 ],
19 "fetchDetails": False,
20 "maxItems": 20,
21 "maxPages": 0,
22 "proxy": {
23 "useApifyProxy": True,
24 "apifyProxyGroups": ["RESIDENTIAL"],
25 "apifyProxyCountry": "US",
26 },
27 "incrementalMode": False,
28 "emitUnchanged": False,
29 "emitExpired": False,
30 "ignoreFieldsForChanges": [],
31}
32
33
34run = client.actor("abotapi/zillow-scraper").call(run_input=run_input)
35
36
37print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41