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.webstaurantstore.com/avantco-awt-60r-60-worktop-refrigerator-with-3-1-2-backsplash/178AWT60R.html",
13 "https://www.webstaurantstore.com/avantco-awt-72r-72-worktop-refrigerator-with-3-1-2-backsplash/178AWT72R.html",
14 "https://www.webstaurantstore.com/avantco-ubb-72g-hc-s-73-stainless-steel-counter-height-narrow-glass-door-back-bar-refrigerator-with-led-lighting/178UBB72GHCS.html",
15 "https://www.webstaurantstore.com/avantco-gds-47-hc-53-1-8-white-sliding-glass-door-merchandiser-refrigerator-with-led-lighting/178GDS47HCW.html",
16 "https://www.webstaurantstore.com/avantco-ubb-4-hc-90-black-counter-height-solid-door-back-bar-refrigerator-with-led-lighting/178UBB4HC.html"
17 ],
18 "ignore_url_failures": true
19};
20
21
22const run = await client.actor("soft_alexist/webstaurantstore-product-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