1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "products": [
9 {
10 "id": "NK-001",
11 "title": "Dainty Sterling Silver Initial Necklace",
12 "materials": "925 sterling silver",
13 "description": "Solid silver chain and hand stamped disc pendant.",
14 },
15 {
16 "id": "TS-014",
17 "title": "Retro Sunset Graphic Tee",
18 "materials": "100% cotton jersey",
19 "description": "Knitted cotton t-shirt, screen printed.",
20 },
21 {
22 "id": "MUG-7",
23 "title": "Handmade Stoneware Coffee Mug",
24 "materials": "stoneware clay, food safe glaze",
25 },
26 ] }
27
28
29run = client.actor("reverent_magic/hs-code-classifier").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