你是否厌倦了手动访问多个网站查看最新内容?RSS Read 节点 是 n8n 中强大的内容聚合工具,能让你自动收集任何支持 RSS 源的网站最新文章。本教程将以最直白的方式,带你快速上手这个神奇的节点!
RSS(Really Simple Syndication,简易信息聚合)是一种标准化的内容发布格式。简单来说:
| 特点 | 说明 |
|---|---|
| 即时获取 | 一键获取 RSS 源中的所有最新文章 |
| 多源聚合 | 与其他 n8n 节点配合,可处理多个 RSS 源 |
| 无代码设置 | 不需要编程知识,只需粘贴 RSS URL |
| 灵活应用 | 可组合邮件、Slack、Google Sheets 等进行自动化 |
| 按需触发 | 作为工作流中的非触发节点,灵活控制执行时机 |
URL(必填)
https://rss.nytimes.com/services/xml/rss/nyt/World.xmlIgnore SSL Issues(SSL 问题忽略)
RSS Read 返回一个数组,每个元素包含:
- title: 文章标题
- link: 文章链接
- content: 文章内容
- pubDate: 发布时间
- guid: 唯一标识符
- author: 作者名称每天上午 9 点,自动从纽约时报获取国际新闻,通过邮件发送给你。
https://rss.nytimes.com/services/xml/rss/nyt/World.xmlLatest News UpdateTitle: {{$node["RSS Read"].data[0].title}}
Link: {{$node["RSS Read"].data[0].link}}要监控多个 RSS 源但保持执行次数最少,使用以下模式:
Schedule Trigger
↓
Array of URLs(存储 RSS 源列表)
↓
Split In Batches(分批处理)
↓
RSS Read(逐个读取)
↓
处理数据(邮件/Slack 等)// 定义多个 RSS 源
return [
{
url: "https://rss.nytimes.com/services/xml/rss/nyt/World.xml"
},
{
url: "https://feeds.bloomberg.com/markets/news.rss"
},
{
url: "https://www.techcrunch.com/feed/"
}
];原因:RSS URL 无效或网站不支持 RSS
解决方案:
原因:每次运行都获取所有文章,RSS Read 没有去重
解决方案:使用 RSS Feed Trigger 节点替代(自动只返回新文章)
原因:HTML 内容没有正确处理
解决方案:使用 Code 节点 处理 HTML,或切换到 HTML 邮件模式
将以下 JSON 复制到 n8n 中:"Import from File" → 粘贴 JSON 并导入
{
"name": "RSS Feed to Email Newsletter",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"daysInterval": 1,
"triggerAtHour": 9,
"triggerAtMinute": 0
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [250, 300],
"id": "schedule-trigger",
"name": "Schedule Trigger"
},
{
"parameters": {
"url": "https://rss.nytimes.com/services/xml/rss/nyt/World.xml"
},
"type": "n8n-nodes-base.rssFeedRead",
"typeVersion": 1.2,
"position": [450, 300],
"id": "rss-read",
"name": "RSS Read"
},
{
"parameters": {
"fromEmail": "your-email@gmail.com",
"toEmail": "recipient@example.com",
"subject": "Latest News Updates",
"text": "=Title: {{$node[\"RSS Read\"].data[0].title}}\n\nLink: {{$node[\"RSS Read\"].data[0].link}}\n\nContent: {{$node[\"RSS Read\"].data[0].content}}"
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2,
"position": [650, 300],
"id": "gmail-send",
"name": "Send Email"
}
],
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "RSS Read",
"type": "main",
"index": 0
}
]
]
},
"RSS Read": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
}
}RSS Read 节点让内容聚合变得极其简单:
[1] 官方文档: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.rssfeedread/
[2] n8n系列教程: https://www.undsky.com/blog/?category=n8n%E6%95%99%E7%A8%8B#