1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sources": [
12 {
13 "publisher": "GlobeNewswire — Partnerships",
14 "url": "https://www.globenewswire.com/RssFeed/subjectcode/29-x/feedTitle/GlobeNewswire",
15 "format": "rss"
16 },
17 {
18 "publisher": "GlobeNewswire — Joint Venture",
19 "url": "https://www.globenewswire.com/RssFeed/subjectcode/23-x/feedTitle/GlobeNewswire",
20 "format": "rss"
21 },
22 {
23 "publisher": "GlobeNewswire — Business Contracts",
24 "url": "https://www.globenewswire.com/RssFeed/subjectcode/7-x/feedTitle/GlobeNewswire",
25 "format": "rss"
26 },
27 {
28 "publisher": "GlobeNewswire — Licensing Agreements",
29 "url": "https://www.globenewswire.com/RssFeed/subjectcode/25-x/feedTitle/GlobeNewswire",
30 "format": "rss"
31 }
32 ],
33 "skipPreviouslyDelivered": true,
34 "historyId": "default",
35 "maxAgeDays": 30
36};
37
38
39const run = await client.actor("nexgenwatch/partnership-alerts").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49