8
n8n 中文网amn8n.com

基于RSS订阅和时间筛选的自动化博客内容追踪

高级

这是一个自动化工作流,包含 19 个节点。主要使用 If, Set, Merge, DateTime, SplitOut 等节点。 基于RSS订阅和时间筛选的自动化博客内容追踪

前置要求
  • 无特殊前置要求,导入即可使用

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "8bdf363d6f1444e891759be2b805fdd240d84e9615b1a1f01b8f4c91c2145754",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "496331d0-329e-447e-97e6-ad993d98a461",
      "name": "拆分 RSS 源",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1168,
        992
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "e04394b1-dc73-4dbb-911a-3798f917d5a3",
      "name": "RSS → 项目",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "maxTries": 2,
      "position": [
        1760,
        832
      ],
      "parameters": {
        "url": "={{ $json.source_identifier }}",
        "options": {
          "ignoreSSL": false,
          "customFields": ""
        }
      },
      "retryOnFail": true,
      "typeVersion": 1.1
    },
    {
      "id": "3f29990d-0f26-405c-b70c-492718d41e1d",
      "name": "当点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -64,
        576
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "60dd1b52-bce1-48cc-88a2-f60cad366936",
      "name": "合并3",
      "type": "n8n-nodes-base.merge",
      "position": [
        2416,
        576
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineByPosition"
      },
      "typeVersion": 3.2
    },
    {
      "id": "57a4231b-6806-4568-8c15-a246c18c2f38",
      "name": "客户端 ID + 最大内容年龄 + 博客",
      "type": "n8n-nodes-base.merge",
      "position": [
        1856,
        592
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "typeVersion": 3.2
    },
    {
      "id": "590c89f0-259d-4e8a-9a9b-71d59d51920e",
      "name": "查找博客的日期和时间",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        2144,
        400
      ],
      "parameters": {
        "date": "={{ $json.pubDate || $json.isoDate }}\n",
        "format": "yyyy-MM-dd",
        "options": {},
        "operation": "formatDate",
        "outputFieldName": "standardizedPubDate"
      },
      "typeVersion": 2
    },
    {
      "id": "1d320e63-1019-49ac-a51d-c646fae6025f",
      "name": "过滤掉旧博客",
      "type": "n8n-nodes-base.if",
      "position": [
        2656,
        576
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bccea370-70ab-478d-a77a-385af6826ae0",
              "operator": {
                "type": "dateTime",
                "operation": "afterOrEquals"
              },
              "leftValue": "={{ $json.pubDate }}",
              "rightValue": "={{ DateTime.now().minus({ days: $json.max_content_age_days }).toFormat('yyyy-MM-dd') }}"
            }
          ]
        }
      },
      "retryOnFail": false,
      "typeVersion": 2.2
    },
    {
      "id": "b856b591-4b95-4798-9c8a-54d55fbf27ee",
      "name": "最大内容年龄天数",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        576
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "41cbc93c-c60a-4fa2-a46c-23a0b887a270",
              "name": "max_content_age_days",
              "type": "number",
              "value": "=60"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "42e3d496-4831-4df4-953c-df5d31dbcb9d",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        816,
        992
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "source_identifier"
      },
      "typeVersion": 1
    },
    {
      "id": "26b2194b-6f73-41d4-bbff-bf96d3936413",
      "name": "要跟踪的博客",
      "type": "n8n-nodes-base.set",
      "position": [
        512,
        992
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "4465ec7e-d770-4b59-a007-51c5b2731d8e",
              "name": "source_identifier",
              "type": "array",
              "value": "={{ ['https://blog.n8n.io/rss', 'https://zapier.com/blog/feeds/latest/'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "6fc7481c-aba4-4526-afe0-3adec1094d35",
      "name": "RSS 源链接",
      "type": "n8n-nodes-base.set",
      "position": [
        1568,
        1008
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "1c04a980-ba49-4eda-8c32-eb09dbaa448c",
              "name": "source_identifier",
              "type": "string",
              "value": "={{ $json.source_identifier }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "542dece8-0e23-430e-a48a-cbd56a3a33ff",
      "name": "RSS 源链接 + 博客",
      "type": "n8n-nodes-base.merge",
      "position": [
        1952,
        992
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "retryOnFail": true,
      "typeVersion": 3.2
    },
    {
      "id": "01009054-b0f7-4151-ae00-e24772883993",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        256
      ],
      "parameters": {
        "width": 432,
        "height": 944,
        "content": "## 欢迎朋友 - 这是您免费下载博客并过滤旧博客的方法 - 无需 API 密钥"
      },
      "typeVersion": 1
    },
    {
      "id": "84d5a479-d8b9-4c7e-893b-800d130f3f44",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        320
      ],
      "parameters": {
        "color": 4,
        "height": 464,
        "content": "## 选择天数"
      },
      "typeVersion": 1
    },
    {
      "id": "693ca94d-11cf-4aa9-a740-79f66e39b2db",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        672
      ],
      "parameters": {
        "color": 4,
        "width": 256,
        "height": 512,
        "content": "## 查找 RSS 源 URL"
      },
      "typeVersion": 1
    },
    {
      "id": "bc443695-d59c-453a-a41d-021a413a7f11",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1088,
        768
      ],
      "parameters": {
        "color": 6,
        "width": 1104,
        "height": 496,
        "content": "## 这会逐个循环遍历网站以查找所有博客。"
      },
      "typeVersion": 1
    },
    {
      "id": "ca80d535-8557-480c-b269-fc3a5ea9c6c6",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        256
      ],
      "parameters": {
        "width": 256,
        "height": 320,
        "content": "## 添加易于阅读格式的“发布日期”"
      },
      "typeVersion": 1
    },
    {
      "id": "5bb7cf78-1942-42ee-a5fb-9660507e6d8d",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2576,
        416
      ],
      "parameters": {
        "width": 256,
        "height": 288,
        "content": "## 过滤掉早于您指定日期的博客"
      },
      "typeVersion": 1
    },
    {
      "id": "a87532e0-9928-4020-bd64-3f975f326ea3",
      "name": "### 需要帮助?",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        768
      ],
      "parameters": {
        "width": 256,
        "height": 368,
        "content": "## 将所有网站拆分为各自的项目,以便它们逐个进入循环"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Merge3": {
      "main": [
        [
          {
            "node": "Filter Out Old Blogs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Split RSS Feeds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS → Items": {
      "main": [
        [
          {
            "node": "rss feed links + blogs",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Rss feed link": {
      "main": [
        [
          {
            "node": "RSS → Items",
            "type": "main",
            "index": 0
          },
          {
            "node": "rss feed links + blogs",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "blogs to track": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split RSS Feeds": {
      "main": [
        [
          {
            "node": "Client ID + Max Content Age + Blogs",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "Rss feed link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Out Old Blogs": {
      "main": [
        [],
        []
      ]
    },
    "max_content_age_days": {
      "main": [
        [
          {
            "node": "Client ID + Max Content Age + Blogs",
            "type": "main",
            "index": 0
          },
          {
            "node": "blogs to track",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "rss feed links + blogs": {
      "main": [
        [
          {
            "node": "Split RSS Feeds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Date & Time of Blogs": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Client ID + Max Content Age + Blogs": {
      "main": [
        [
          {
            "node": "Find Date & Time of Blogs",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge3",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "max_content_age_days",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量19
分类-
节点类型9
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者

On a mission to automate all aspects of social media. Each of my templates covered more in depth in my Skool Community.

外部链接
在 n8n.io 查看

分享此工作流