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/",
14 "https://www.homes.com/austin-tx/sold/",
15 "https://www.homes.com/property/12821-ranft-cove-del-valle-tx/m6kdhgkklwzy3/",
16 "https://www.homes.com/austin-tx/p2/",
17 "https://www.homes.com/austin-tx/homes-for-rent/",
18 "https://www.homes.com/austin-tx/open-houses/",
19 "https://www.homes.com/austin-tx/under-800k/",
20 "https://www.homes.com/austin-tx/3-bedroom/",
21 "https://www.homes.com/austin-tx/newest/",
22 "https://www.homes.com/austin-tx/foreclosure/",
23 "https://www.homes.com/austin-tx/houses-for-sale/",
24 ],
25 "listingType": "for_sale",
26 "fetchDetails": False,
27 "maxItems": 20,
28 "maxPages": 0,
29 "proxy": { "useApifyProxy": True },
30 "incrementalMode": False,
31 "emitUnchanged": False,
32 "emitExpired": False,
33 "compactUpdates": False,
34 "ignoreFieldsForChanges": [],
35 "maxNotifyListings": 50,
36}
37
38
39run = client.actor("abotapi/homes-com-scraper").call(run_input=run_input)
40
41
42print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46