1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywordGroups": [
10 {
11 "name": "가습기",
12 "keywords": ["가습기"],
13 },
14 {
15 "name": "공기청정기",
16 "keywords": ["공기청정기"],
17 },
18 {
19 "name": "전기요",
20 "keywords": [
21 "전기요",
22 "전기매트",
23 ],
24 },
25 ],
26 "shoppingCategories": [
27 {
28 "name": "Digital & appliances",
29 "id": "50000003",
30 },
31 {
32 "name": "Cosmetics & beauty",
33 "id": "50000002",
34 },
35 ],
36}
37
38
39run = client.actor("koreadata-lab/naver-shopping-insight-search-trends").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46