1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "kind": "products",
12 "queries": [
13 "dress"
14 ],
15 "categories": [
16 "Fashion"
17 ],
18 "urls": [
19 "https://popshop.live/farmhouselux",
20 "https://popshop.live/kevinkaipolani"
21 ],
22 "showStatus": "all",
23 "pageSize": 40,
24 "maxItems": 20,
25 "proxy": {
26 "useApifyProxy": true
27 },
28 "incrementalMode": false,
29 "emitUnchanged": false,
30 "emitExpired": false,
31 "maxNotifyListings": 50
32};
33
34
35const run = await client.actor("abotapi/popshop-live-scraper").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45