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 "shops": [
13 "shopthemasonjar"
14 ],
15 "urls": [
16 "https://shopthemasonjar.commentsold.com/",
17 "https://shopthemasonjar.commentsold.com/collections/all-items",
18 "https://shopthemasonjar.commentsold.com/api/products/32291",
19 "https://shopthemasonjar.commentsold.com/live"
20 ],
21 "collections": [
22 "all-items"
23 ],
24 "searchQuery": "",
25 "inStockOnly": false,
26 "fetchDetails": true,
27 "includeLive": true,
28 "proxy": {
29 "useApifyProxy": true
30 },
31 "incrementalMode": false,
32 "emitUnchanged": false,
33 "emitExpired": false
34};
35
36
37const run = await client.actor("abotapi/commentsold-com-scraper").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47