1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "targets": [{
9 "id": "basf-texas",
10 "name": "BASF Texas EPA Watch",
11 "criticality": "high",
12 "owner": "EHS / Compliance",
13 "tags": "chemical,texas,epa",
14 "facilityName": "BASF",
15 "state": "TX",
16 "facilitySearch": { "nameMatchMode": "CONTAINS" },
17 "complianceScreener": {
18 "years": 5,
19 "activeOnly": True,
20 "nameMatchMode": "CONTAINS",
21 "evidenceLimit": 5,
22 },
23 }] }
24
25
26run = client.actor("taroyamada/epa-enforcement-digest").call(run_input=run_input)
27
28
29print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
30for item in client.dataset(run.default_dataset_id).iterate_items():
31 print(item)
32
33