1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keyword": "",
10 "keywords": [],
11 "agencies": [],
12 "fundingCategories": [],
13 "eligibilities": [],
14 "fundingInstruments": [],
15 "cfda": "",
16 "opportunityNumber": "",
17 "oppStatuses": [
18 "posted",
19 "forecasted",
20 ],
21 "sortBy": "openDate|desc",
22 "pageSize": 100,
23 "maxResults": 10,
24 "emitAll": True,
25}
26
27
28run = client.actor("socosupply/grants-watch").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