8
n8n 中文网amn8n.com

系列高清Olimpo与TorrentLand

中级

这是一个Marketing领域的自动化工作流,包含 13 个节点。主要使用 Set, Code, Sort, Merge, Filter 等节点。 合并筛选多个RSS源并发送至Telegram

前置要求
  • Telegram Bot Token

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "eZGesFp8UtgXZBci",
  "meta": {
    "instanceId": "8fb543b511022c43ab705107ba101545bb8b0fdb9bd6ebc4cca28dc9591a036e"
  },
  "name": "Series HD Olimpo & TorrentLand",
  "tags": [],
  "nodes": [
    {
      "id": "f4483eb1-ca99-4c61-a6e1-9bccb85a2ee8",
      "name": "RSS Olimpo",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1000,
        -420
      ],
      "parameters": {
        "url": "https://hd-olimpo.club/rss/7335.be0cbfb98c9c4c08ddb3cd459c77967f",
        "options": {
          "ignoreSSL": false
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "c80e250d-1dcd-4fca-b0d5-e7ab0aade1e6",
      "name": "获取简报",
      "type": "n8n-nodes-base.set",
      "position": [
        -800,
        -420
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "11b653ae-6a43-4e6d-86b8-066384eaa7d6",
              "name": "title",
              "type": "string",
              "value": "={{ $json.title.replace(/\\[PACK\\].*/, \"\").replace(/\\[.*?\\]/g, \"\").trim() }} ({{$json.content.match(/<strong>Size<\\/strong>:\\s([\\d.]+\\s[KMGT]iB)/)[1]}})"
            },
            {
              "id": "e300ad1b-6b93-45f7-a964-294abbebfd95",
              "name": "link",
              "type": "string",
              "value": "={{ $json.link.replace(/\\/torrent\\/download\\/(\\d+)\\..*/, \"/torrents/$1\") }}"
            },
            {
              "id": "bd548580-e879-4671-ad4e-603d2496362e",
              "name": "pubDate",
              "type": "string",
              "value": "={{ new Date($json.pubDate).getTime() }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3e784166-4aaf-46e4-adef-8ef55ce3487c",
      "name": "编辑字段1",
      "type": "n8n-nodes-base.set",
      "position": [
        -800,
        -140
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "d0002dd0-3a5a-4f1a-ba6e-d359549f5a1e",
              "name": "title",
              "type": "string",
              "value": "={{$json.title.replace(/^\\[PACK\\] /, \"\").replace(/1080p .*/, \"\")}} ({{$json.content.match(/<strong>Size<\\/strong>:\\s([\\d.]+\\s[KMGT]iB)/)[1]}})"
            },
            {
              "id": "cd7b2be1-a52e-430b-98a1-2fb30b5cb8c7",
              "name": "link",
              "type": "string",
              "value": "={{ $json.link.replace(/\\/torrent\\/download\\/(\\d+)\\..*/, \"/torrents/$1\") }}"
            },
            {
              "id": "3b9d50a8-0d46-4a8f-94e9-454bc5153280",
              "name": "pubDate",
              "type": "string",
              "value": "={{ new Date($json.pubDate).getTime() }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3ce079a3-5ca9-4e75-a845-2b60ff94c0db",
      "name": "合并的RSS源",
      "type": "n8n-nodes-base.merge",
      "position": [
        -540,
        -280
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "6906b944-5554-4325-a932-ea8cbf3788dc",
      "name": "排序",
      "type": "n8n-nodes-base.sort",
      "position": [
        -60,
        -280
      ],
      "parameters": {
        "options": {},
        "sortFieldsUi": {
          "sortField": [
            {
              "order": "descending",
              "fieldName": "pubDate"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "179d4844-b80e-4f26-aa13-e09c73361603",
      "name": "Markdown列表",
      "type": "n8n-nodes-base.code",
      "position": [
        140,
        -280
      ],
      "parameters": {
        "jsCode": "// Escape simbols function\nfunction escapeMarkdown(text) {\n    return text\n        .replace(/\\\\/g, \"\\\\\\\\\")\n        .replace(/\\*/g, \"\\\\*\")\n        .replace(/\\_/g, \"\\\\_\")\n        .replace(/\\[/g, \"\\\\[\")\n        .replace(/\\]/g, \"\\\\]\")\n        .replace(/~/g, \"\\\\~\")\n        .replace(/`/g, \"\\\\`\")\n        .replace(/>/g, \"\\\\>\")\n        .replace(/#/g, \"\\\\#\")\n        .replace(/\\+/g, \"\\\\+\")\n        .replace(/=/g, \"\\\\=\")\n        .replace(/\\|/g, \"\\\\|\")\n        .replace(/!/g, \"\\\\!\");\n}\n\n// Generate list with links\nconst formattedList = items.map(item => {\n    const title = escapeMarkdown(item.json.title || \"No title\");\n    const link = item.json.link || \"#\";\n\n    // Telegram Markdown Format: [Text](URL)\n    return `[${title}](${link})`;\n}).join(\"\\n\"); // Join with line break\n\n// Return generated list\nreturn [{ json: { message: formattedList } }];\n\n"
      },
      "typeVersion": 2
    },
    {
      "id": "4eeea9d2-33e9-4764-8ee4-8ec22fdcf0a9",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        340,
        -280
      ],
      "parameters": {
        "text": "=`----------------------------`\n`-- TorrentLand & HDOlimpo --`\n`----------------------------`\n{{ $json.message }}",
        "chatId": "-1001216307043",
        "additionalFields": {
          "parse_mode": "Markdown",
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "7PHYK39uh1jMzOBd",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b5cf3931-3e7e-435a-bb47-45e57517c7ca",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1280,
        -280
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 8
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b704ea08-11c5-4f13-a206-a009524016f2",
      "name": "过滤器",
      "type": "n8n-nodes-base.filter",
      "position": [
        -300,
        -280
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "046f5bde-6d2c-4dfd-b29b-17be6c34cc1b",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ $json.pubDate }}\n\n",
              "rightValue": "={{ Date.now() - 2 * 24 * 60 * 60 * 1000 }}"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "e39365d8-9399-486b-be44-e321dbe3a8a6",
      "name": "RSS种子",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1000,
        -140
      ],
      "parameters": {
        "url": "https://torrentland.li/rss/1251.283bddcd8d90ab67e4d36c4e09bc9a21",
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "43cb33e8-fc01-4ccb-9f3d-03a79fb45eab",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        -540
      ],
      "parameters": {
        "width": 200,
        "height": 540,
        "content": "## RSS节点"
      },
      "typeVersion": 1
    },
    {
      "id": "c4e8deaa-acde-415c-8d9b-f52e8940085a",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -420
      ],
      "parameters": {
        "width": 220,
        "height": 280,
        "content": "## 项目时效"
      },
      "typeVersion": 1
    },
    {
      "id": "9c8df3b9-c6c8-4fb8-8702-8579479b8c4c",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        -540
      ],
      "parameters": {
        "width": 200,
        "height": 560,
        "content": "## 整理信息"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "01439398-74d1-4d28-bebd-0ea0a0f83de9",
  "connections": {
    "Sort": {
      "main": [
        [
          {
            "node": "Markdown list",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Sort",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merged Rss": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Olimpo": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Merged Rss",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Torrent": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Merged Rss",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Markdown list": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "RSS Olimpo",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Torrent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 营销

需要付费吗?

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

工作流信息
难度等级
中级
节点数量13
分类1
节点类型9
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流