1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "cybersecurity",
11 "AI",
12 "cloud computing",
13 ],
14 "sources": [
15 "sam",
16 "grants",
17 ],
18 "samApiKey": "",
19 "maxResults": 20,
20 "filterBy": {
21 "agency": "",
22 "minValue": 0,
23 "postedWithinDays": 0,
24 },
25 "webhookUrl": "",
26}
27
28
29run = client.actor("second_coming/gov-contract-monitor").call(run_input=run_input)
30
31
32print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
33for item in client.dataset(run["defaultDatasetId"]).iterate_items():
34 print(item)
35
36