1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "productUrls": [
12 "https://smartstore.naver.com/richocean/products/6272899246",
13 "https://smartstore.naver.com/pasteur365/products/11150965069",
14 "https://brand.naver.com/pictory/products/4108300313",
15 "https://smartstore.naver.com/shinhyun11/products/12828162445",
16 "https://smartstore.naver.com/main/products/13192336520",
17 "https://smartstore.naver.com/lithm/products/13474400031",
18 "https://smartstore.naver.com/pasteur/products/13628441133",
19 "https://smartstore.naver.com/ankoon/products/12863324927",
20 "https://smartstore.naver.com/kindasset/products/13106078292",
21 "https://brand.naver.com/yuppe/products/11754097963",
22 "https://smartstore.naver.com/thejunimarket/products/12009152549",
23 "https://brand.naver.com/lumena/products/13244298880",
24 "https://smartstore.naver.com/ecomnc/products/9781103426",
25 "https://brand.naver.com/herisson/products/8550350196",
26 "https://brand.naver.com/hteachkr/products/5687988655",
27 "https://brand.naver.com/bokukstore/products/4803948473",
28 "https://smartstore.naver.com/marquecuisine/products/11277341296"
29 ]
30};
31
32
33const run = await client.actor("delicious_zebu/naver-product-detail-scraper").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43