1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "productUrl": "https://www.lefties.com/es/en/woman/shoes/new-in/high-heel-sandals-with-metallic-detail-c1030272265p694195974.html?colorId=102&style=01&parentId=702888584",
12 "limit": "20",
13 "countryCode": "ES",
14 "languageCode": ""
15};
16
17
18const run = await client.actor("pintostudio/lefties-similar-products-scraper").call(input);
19
20
21console.log('Results from dataset');
22console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
23const { items } = await client.dataset(run.defaultDatasetId).listItems();
24items.forEach((item) => {
25 console.dir(item);
26});
27
28