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 "dress"
14 ],
15 "collections": [
16 "dresses"
17 ],
18 "urls": [
19 "https://www.showpo.com/products/amara-maxi-dress-corset-bodice-lace-up-dress-in-blue",
20 "https://www.showpo.com/collections/dresses",
21 "https://www.showpo.com/search?q=dress&type=product"
22 ],
23 "fetchDetails": true,
24 "maxReviews": 20,
25 "maxItems": 20,
26 "maxPages": 0,
27 "proxy": {
28 "useApifyProxy": true
29 },
30 "incrementalMode": false,
31 "emitUnchanged": false,
32 "emitExpired": false,
33 "maxNotifyListings": 50
34};
35
36
37const run = await client.actor("abotapi/showpo-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