1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "locations": [
13 "Houston, TX"
14 ],
15 "urls": [
16 "https://www.furnishedfinder.com/housing/us--tx--houston",
17 "https://www.furnishedfinder.com/housing/us--tx--houston?map=%7B%22min%22%3A%7B%22latitude%22%3A29.5049885802716%2C%22longitude%22%3A-95.83213727429509%7D%2C%22max%22%3A%7B%22latitude%22%3A30.1253449588269%2C%22longitude%22%3A-95.04882504723966%7D%7D",
18 "https://www.furnishedfinder.com/property/999116_1",
19 "https://www.furnishedfinder.com/property/999116",
20 "https://www.furnishedfinder.com/housing/us--tx--austin?filters=%5B%7B%22key%22%3A%22property-type-class%22%2C%22value%22%3A%22room%22%7D%5D",
21 "https://www.furnishedfinder.com/housing/us--tx--houston/rooms"
22 ],
23 "proxy": {
24 "useApifyProxy": true,
25 "apifyProxyGroups": [
26 "RESIDENTIAL"
27 ],
28 "apifyProxyCountry": "US"
29 },
30 "incrementalMode": false,
31 "emitUnchanged": false,
32 "emitExpired": false,
33 "ignoreFieldsForChanges": []
34};
35
36
37const run = await client.actor("abotapi/furnishedfinder-scraper").call(input);
38
39
40console.log('Results from dataset');
41console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47