1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "topics": [{
9 "id": "section-301",
10 "name": "Section 301 China Tariffs",
11 "watchTerms": "section 301,chapter 99,additional duties",
12 "useUstrContext": True,
13 "federalRegister": {
14 "agencySlug": "trade-representative-office-of-united-states",
15 "documentTypes": "NOTICE",
16 "keywords": "tariff",
17 },
18 "hts": {
19 "searchTerm": "9903.88",
20 "htsCodes": "9903.88.01,9903.88.03,9903.88.05",
21 "maxMatches": 10,
22 },
23 }] }
24
25
26run = client.actor("taroyamada/tariff-trade-change-digest").call(run_input=run_input)
27
28
29print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31 print(item)
32
33