1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "documents": [
9 {
10 "id": "risky-assembly",
11 "claimed_origin": "Vietnam",
12 "target_hts": "8544.42",
13 "text": "Product: finished wire harness. Components: copper wire (origin: China); plastic connectors (origin: China); terminals (origin: China). Processing: the Chinese components are assembled in Vietnam by simple assembly (crimping and plugging), then repackaged and relabeled as Made in Vietnam before export to the United States. Country of shipment: Vietnam.",
14 },
15 {
16 "id": "genuine-transformation",
17 "claimed_origin": "Mexico",
18 "text": "Product: injection-molded automotive housing. Components: polypropylene resin (origin: South Korea). Processing: in Mexico the resin is injection molded, machined, and assembled into a new finished housing with a different name, character and use. Bill of materials with country of origin attached; manufacturing process flow chart and value-added cost breakdown on file; HTS classification of input and finished good documented.",
19 },
20 ] }
21
22
23run = client.actor("jadelike_zine/origin-transshipment-risk-checker").call(run_input=run_input)
24
25
26print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28 print(item)
29
30