1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "feedUrls": [
10 "https://feeds.bbci.co.uk/news/rss.xml",
11 "https://news.ycombinator.com/rss",
12 "https://github.com/apify/crawlee/releases.atom",
13 "https://www.theverge.com/rss/index.xml",
14 ],
15 "opmlUrl": "",
16 "opml": "",
17 "mode": "snapshot",
18 "firstRunBehavior": "emit-all",
19 "keywords": [],
20 "excludeKeywords": [],
21 "authors": [],
22 "categories": [],
23 "maxItemsPerFeed": 25,
24 "includeContent": True,
25 "dedupe": True,
26 "webhookUrl": "",
27 "stateStoreName": "rss-feed-monitor-state",
28 "maxConcurrency": 5,
29 "maxRunSecs": 240,
30 "proxyConfiguration": { "useApifyProxy": True },
31}
32
33
34run = client.actor("insight.solutions/rss-feed-monitor").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41