1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "urls": [
12 "https://www.landandfarm.com/property/single-family-gray-court-sc-41593652/",
13 "https://www.landandfarm.com/property/2-16-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-6-42152377/",
14 "https://www.landandfarm.com/property/2-98-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-5-42152378/",
15 "https://www.landandfarm.com/property/12-58-acre-williamsburg-county-farm-with-415-ft-of-paved-road-fronatge-42173626/",
16 "https://www.landandfarm.com/property/7-14-acres-of-productive-farmland-near-hemingway-sc-42133307/"
17 ],
18 "ignore_url_failures": true
19};
20
21
22const run = await client.actor("alexist/landandfarm-property-details-scraper").call(input);
23
24
25console.log('Results from dataset');
26console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
27const { items } = await client.dataset(run.defaultDatasetId).listItems();
28items.forEach((item) => {
29 console.dir(item);
30});
31
32