1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "locations": ["Texas"],
11 "urls": [
12 "https://www.landwatch.com/texas-land-for-sale",
13 "https://www.landwatch.com/land",
14 "https://www.landwatch.com/texas-land-for-sale/bandera-county",
15 "https://www.landwatch.com/texas-land-for-sale/page-2",
16 "https://www.landwatch.com/texas-land-for-sale/bandera-county/page-2",
17 "https://www.landwatch.com/land/page-2",
18 "https://www.landwatch.com/texas-land-for-sale/acres-101-200",
19 "https://www.landwatch.com/texas-land-for-sale/price-100000-249999",
20 "https://www.landwatch.com/texas-land-for-sale/hunting-property",
21 "https://www.landwatch.com/hunting-property",
22 "https://www.landwatch.com/texas-land-for-sale/page-2/acres-101-200",
23 "https://www.landwatch.com/bandera-county-texas-farms-and-ranches-for-sale/pid/416370332",
24 "https://www.landwatch.com/texas-land-for-sale/farms-ranches",
25 "https://www.landwatch.com/texas-land-for-sale/camping-activity",
26 "https://www.landwatch.com/profile/mark-connally-jr-broker-associate/3584690",
27 ],
28 "proxy": { "useApifyProxy": True },
29 "incrementalMode": False,
30 "emitUnchanged": False,
31 "emitExpired": False,
32 "ignoreFieldsForChanges": [],
33}
34
35
36run = client.actor("abotapi/landwatch-scraper").call(run_input=run_input)
37
38
39print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43