1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "url": "https://www.zillow.com/baltimore-md/rentals/?state=hKFo2SBtNXFkVUNrNFNZSUVpUW85UjhLOE5iTENPcUJ1dnNWVqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIHZZZjMzLWVXejNfOTVTSkFvdjVzUklNcnc0WGNnMVJ1o2NpZNkgR2VWZWRKMGUzWHU2SUxZeTRDT3V0NXh1aUtBSkxNOWc",
10 "homepage": "https://www.zillow.com?state=hKFo2SBtNXFkVUNrNFNZSUVpUW85UjhLOE5iTENPcUJ1dnNWVqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIHZZZjMzLWVXejNfOTVTSkFvdjVzUklNcnc0WGNnMVJ1o2NpZNkgR2VWZWRKMGUzWHU2SUxZeTRDT3V0NXh1aUtBSkxNOWc",
11 "proxy_password": "Password",
12 "proxy_username": "Username",
13 "proxy_port": "Port",
14 "proxy_host": "Host",
15}
16
17
18run = client.actor("eunit/zillow-scraper").call(run_input=run_input)
19
20
21print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
22for item in client.dataset(run["defaultDatasetId"]).iterate_items():
23 print(item)
24
25