1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sources": [
10 {
11 "publisher": "PR Newswire — Personnel Announcements",
12 "url": "https://www.prnewswire.com/rss/general-business-latest-news/personnel-announcements-list.rss",
13 "format": "rss",
14 },
15 {
16 "publisher": "Newswire.ca — Personnel Announcements",
17 "url": "https://www.newswire.ca/rss/general-business-latest-news/personnel-announcements-list.rss",
18 "format": "rss",
19 },
20 {
21 "publisher": "GlobeNewswire — Directors and Officers",
22 "url": "https://www.globenewswire.com/RssFeed/subjectcode/11-x/feedTitle/GlobeNewswire",
23 "format": "rss",
24 },
25 {
26 "publisher": "GlobeNewswire — Company Announcement",
27 "url": "https://www.globenewswire.com/RssFeed/subjectcode/9-x/feedTitle/GlobeNewswire",
28 "format": "rss",
29 },
30 ],
31 "maxRecords": 10,
32 "skipPreviouslyDelivered": True,
33 "historyId": "default",
34 "maxAgeDays": 30,
35}
36
37
38run = client.actor("nexgenwatch/executive-appointment-alerts").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45