1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "location": "Austin, TX",
11 "sort": "relevance",
12 "urls": [
13 "https://www.homes.com/austin-tx/sold/",
14 "https://www.homes.com/property/12821-ranft-cove-del-valle-tx/m6kdhgkklwzy3/",
15 ],
16 "listingType": "for_sale",
17 "fetchDetails": False,
18 "maxItems": 20,
19 "maxPages": 0,
20 "incrementalMode": False,
21 "emitUnchanged": False,
22 "emitExpired": False,
23 "proxy": { "useApifyProxy": True },
24 "maxNotifyListings": 50,
25}
26
27
28run = client.actor("abotapi/homes-com-scraper").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35