1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "input": [
9 {
10 "location": "New York, NY 10001",
11 "status": "forSale",
12 "startPage": 1,
13 "endPage": 2,
14 "sortSelection": "days",
15 },
16 {
17 "location": "Santa Monica, CA",
18 "status": "forRent",
19 "startPage": 1,
20 "beds_min": 2,
21 "price_max": 5000,
22 "output": "json",
23 },
24 {
25 "location": "New York, NY 10001",
26 "status": "forSale",
27 "startPage": 99,
28 },
29 ] }
30
31
32run = client.actor("axesso_data/zillow-property-search-scraper").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39