1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "queries": ["ワンピース"],
10 "urls": [
11 { "url": "https://zozo.jp/shop/nike/goods/104503785/" },
12 { "url": "https://zozo.jp/search/?p_keyv=nike" },
13 { "url": "https://zozo.jp/brand/nike/" },
14 { "url": "https://zozo.jp/shop/nike/" },
15 { "url": "https://zozo.jp/category/shoes/sneakers/" },
16 { "url": "https://zozo.jp/men-brand/nike/" },
17 { "url": "https://zozo.jp/women-category/shoes/sneakers/" },
18 { "url": "https://zozo.jp/search/?p_keyv=%83%8F%83%93%83s%81%5B%83X" },
19 ],
20 "proxy": {
21 "useApifyProxy": True,
22 "apifyProxyGroups": ["RESIDENTIAL"],
23 "apifyProxyCountry": "JP",
24 },
25 "ignoreFieldsForChanges": [],
26}
27
28
29run = client.actor("abotapi/zozotown-scraper").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36