1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "queries": [
12 "ワンピース"
13 ],
14 "urls": [
15 {
16 "url": "https://zozo.jp/shop/nike/goods/104503785/"
17 },
18 {
19 "url": "https://zozo.jp/search/?p_keyv=nike"
20 },
21 {
22 "url": "https://zozo.jp/brand/nike/"
23 },
24 {
25 "url": "https://zozo.jp/shop/nike/"
26 },
27 {
28 "url": "https://zozo.jp/category/shoes/sneakers/"
29 },
30 {
31 "url": "https://zozo.jp/men-brand/nike/"
32 },
33 {
34 "url": "https://zozo.jp/women-category/shoes/sneakers/"
35 },
36 {
37 "url": "https://zozo.jp/search/?p_keyv=%83%8F%83%93%83s%81%5B%83X"
38 }
39 ],
40 "proxy": {
41 "useApifyProxy": true,
42 "apifyProxyGroups": [
43 "RESIDENTIAL"
44 ],
45 "apifyProxyCountry": "JP"
46 },
47 "ignoreFieldsForChanges": []
48};
49
50
51const run = await client.actor("abotapi/zozotown-scraper").call(input);
52
53
54console.log('Results from dataset');
55console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
56const { items } = await client.dataset(run.defaultDatasetId).listItems();
57items.forEach((item) => {
58 console.dir(item);
59});
60
61