1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "maxItems": 1000,
10 "oosDateFrom": "",
11 "oosReasonFilter": [
12 "New Entrant Revoked - Refusal of Audit/No Contact",
13 "New Entrant Revoked - Failure of Safety Audit",
14 "New Entrant Revoked - Expedited Actions",
15 "Unsatisfactory = Unfit",
16 ],
17 "states": [
18 "GA",
19 "TX",
20 "CA",
21 "FL",
22 "IL",
23 "OH",
24 ],
25}
26
27
28run = client.actor("groundplanes/fmcsa-out-of-service-orders-scraper").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35