1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "articles",
12 "channels": [
13 "fashion",
14 "beauty"
15 ],
16 "searchQueries": [
17 "handbag"
18 ],
19 "searchSort": "relevance",
20 "shoppingCategories": [
21 "new-arrivals"
22 ],
23 "productSort": "site-order",
24 "seasons": [
25 "spring-2027-ready-to-wear"
26 ],
27 "designers": [
28 "chanel",
29 "louis-vuitton"
30 ],
31 "startUrls": [
32 "https://www.vogue.com/article/mochi-skin",
33 "https://www.vogue.com/fashion-shows/spring-2027-ready-to-wear/louis-vuitton"
34 ],
35 "fetchDetails": true,
36 "maxItems": 20,
37 "maxPages": 0,
38 "proxyConfiguration": {
39 "useApifyProxy": true
40 },
41 "incrementalMode": false,
42 "emitUnchanged": false,
43 "emitExpired": false,
44 "maxNotifyListings": 50
45};
46
47
48const run = await client.actor("abotapi/vogue-com-scraper").call(input);
49
50
51console.log('Results from dataset');
52console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58