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 "searchTerms": [
13 "chanel flap"
14 ],
15 "categories": [],
16 "brands": [],
17 "colors": [],
18 "occasions": [],
19 "materials": [],
20 "tiers": [],
21 "newArrivals": false,
22 "urls": [
23 "https://www.vivrelle.com/products/caviar-slim-vanity-case-with-chain-32",
24 "https://www.vivrelle.com/collection?collection=Handbags",
25 "https://www.vivrelle.com/collection?brand=Chanel&page=2",
26 "https://www.vivrelle.com/collection/morganstewart"
27 ],
28 "fetchDetails": true,
29 "maxItems": 20,
30 "proxy": {
31 "useApifyProxy": true
32 },
33 "incrementalMode": false,
34 "emitUnchanged": false,
35 "emitExpired": false,
36 "ignoreFieldsForChanges": []
37};
38
39
40const run = await client.actor("abotapi/vivrelle-com-scraper").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50