1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "urls",
12 "searchTerms": [
13 "니트"
14 ],
15 "sortBy": "relevance",
16 "urls": [
17 "https://www.ssfshop.com/New-In/list?dspCtgryNo=SFMA41A14",
18 "https://www.ssfshop.com/8seconds/main?dspCtgryNo=&brandShopNo=BDMA07A01&brndShopId=8SBSS",
19 "https://www.ssfshop.com/search/result?keyword=%EB%82%A8%EB%B0%94%EC%A7%80",
20 "https://www.ssfshop.com/8-seconds/GM0025062354402/good"
21 ],
22 "fetchDetails": true,
23 "fetchReviews": true,
24 "maxReviews": 20,
25 "maxItems": 20,
26 "maxPages": 0,
27 "proxy": {
28 "useApifyProxy": true
29 },
30 "resumeFromRunId": "",
31 "incrementalMode": false,
32 "stateKey": "",
33 "emitUnchanged": false,
34 "emitExpired": false,
35 "ignoreFieldsForChanges": [],
36 "mcpConnectors": [],
37 "notionParentPageUrl": "",
38 "maxNotifyListings": 50,
39 "notifyOnlyChanges": false,
40 "notificationLimit": 5,
41 "slackWebhookUrl": "",
42 "discordWebhookUrl": "",
43 "telegramBotToken": "",
44 "telegramChatId": ""
45};
46
47
48const run = await client.actor("abotapi/klekt-com-scraper").call(input);
49
50
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58