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 "location": "london",
13 "urls": [
14 "https://jitty.com/for-sale",
15 "https://jitty.com/for-sale/bath",
16 "https://jitty.com/for-sale/london",
17 "https://jitty.com/for-sale/east-london/flat-property-type",
18 "https://jitty.com/for-sale/london/at-least-2-bedrooms/flat-property-type",
19 "https://jitty.com/for-sale/london/price-up-to-200000-gbp",
20 "https://jitty.com/for-sale/london/rural-area-type",
21 "https://jitty.com/for-sale/london/flat-property-type?page=2",
22 "https://jitty.com/for-sale/london/flat-property-type?sort=price_asc",
23 "https://jitty.com/for-sale/paddington-station/travel-by-public-transport/travel-for-60-minutes/look-for-sauna",
24 "https://jitty.com/for-sale/london/flat-property-type/",
25 "http://jitty.com/for-sale/bath",
26 "https://jitty.com/for-sale/greenwich/look-for-waterfront",
27 "https://jitty.com/for-sale/look-for-castle",
28 "https://jitty.com/for-sale/london/within-5-miles/price-200000-to-500000-gbp/at-least-2-bedrooms",
29 "https://jitty.com/for-sale/shoreditch/within-0.5-miles/flat-or-maisonette-property-type",
30 "https://www.jitty.com/for-sale/greenwich",
31 "https://jitty.com/for-sale/map/london/flat-property-type",
32 "https://jitty.com/properties/lrlS0BMHI5MEzJRYM9n9"
33 ],
34 "proxy": {
35 "useApifyProxy": true,
36 "apifyProxyGroups": [
37 "RESIDENTIAL"
38 ],
39 "apifyProxyCountry": "GB"
40 },
41 "ignoreFieldsForChanges": []
42};
43
44
45const run = await client.actor("abotapi/jitty-uk-scraper").call(input);
46
47
48console.log('Results from dataset');
49console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55