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 bag"
14 ],
15 "urls": [
16 "https://www.vestiairecollective.com/search/?q=chanel%20bag",
17 "https://www.vestiairecollective.com/women-bags/handbags/",
18 "https://www.vestiairecollective.com/women-bags/handbags/chanel/",
19 "https://www.vestiairecollective.com/chanel/",
20 "https://www.vestiairecollective.com/women-bags/handbags/chanel/grand-shopping/",
21 "https://www.vestiairecollective.com/c/flash-price-drops-10474/",
22 "https://www.vestiairecollective.com/new-items/",
23 "https://www.vestiairecollective.com/profile/32743220",
24 "https://www.vestiairecollective.com/journal/",
25 "https://www.vestiairecollective.com/search/?q=chanel%20bag&page=2&sortBy=price-asc",
26 "https://www.vestiairecollective.com/women-bags/handbags/chanel/black-leather-grand-shopping-chanel-handbag-72479772.shtml"
27 ],
28 "market": "AU",
29 "sort": "relevance",
30 "soldOnly": false,
31 "fetchDetails": true,
32 "maxItems": 20,
33 "proxy": {
34 "useApifyProxy": true
35 },
36 "incrementalMode": false,
37 "emitUnchanged": false,
38 "emitExpired": false,
39 "maxNotifyListings": 50
40};
41
42
43const run = await client.actor("abotapi/vestiaire-collective-scraper").call(input);
44
45
46console.log('Results from dataset');
47console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
48const { items } = await client.dataset(run.defaultDatasetId).listItems();
49items.forEach((item) => {
50 console.dir(item);
51});
52
53