8
n8n 中文网amn8n.com

从Wordpress发布到Medium

中级

这是一个Marketing领域的自动化工作流,包含 10 个节点。主要使用 Html, Medium, ItemLists, HttpRequest, ManualTrigger 等节点。 从Wordpress发布到Medium

前置要求
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "257476b1ef58bf3cb6a46e65fac7ee34a53a5e1a8492d5c6e4da5f87c9b82833",
    "templateId": "2062"
  },
  "nodes": [
    {
      "id": "aac9c0d2-a278-4ea3-acf1-1aca547e30da",
      "name": "HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        1520,
        480
      ],
      "parameters": {
        "options": {},
        "operation": "extractHtmlContent",
        "extractionValues": {
          "values": [
            {
              "key": "Title",
              "cssSelector": "h2.single-post-title"
            },
            {
              "key": "Introduction",
              "cssSelector": ".kiwi-highlighter-content-area > p:nth-child(1)"
            },
            {
              "key": "Header",
              "cssSelector": "div.kiwi-highlighter-content-area",
              "returnValue": "html"
            },
            {
              "key": "={{ $json.data }}"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b0eb2240-ffa3-4e80-af7a-2aff470c02ee",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        640
      ],
      "parameters": {
        "url": "https://mailsafi.com/blog/",
        "options": {}
      },
      "typeVersion": 4.1,
      "alwaysOutputData": true
    },
    {
      "id": "e8dd3215-2cec-48ba-9a0b-7b3c01a4a637",
      "name": "HTML1",
      "type": "n8n-nodes-base.html",
      "position": [
        840,
        640
      ],
      "parameters": {
        "options": {},
        "operation": "extractHtmlContent",
        "extractionValues": {
          "values": [
            {
              "key": "post",
              "cssSelector": ".entry-title > a",
              "returnArray": true
            },
            {
              "key": "Link",
              "attribute": "href",
              "cssSelector": " .lae-read-more > a",
              "returnArray": true,
              "returnValue": "attribute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5e408e44-7424-419f-9e24-1b619a96a1e0",
      "name": "项目列表",
      "type": "n8n-nodes-base.itemLists",
      "position": [
        1000,
        640
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "post , Link"
      },
      "typeVersion": 3.1
    },
    {
      "id": "d7c6088e-efa3-4fbb-a53f-a7fc7bebdb84",
      "name": "Medium",
      "type": "n8n-nodes-base.medium",
      "position": [
        1580,
        700
      ],
      "parameters": {
        "title": "={{ $json.Title }}",
        "content": "={{ $json.Header }}",
        "contentFormat": "html",
        "additionalFields": {
          "tags": "Email Hosting, Email, Email Marketing",
          "publishStatus": "public",
          "notifyFollowers": false
        }
      },
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "5004a96e-16df-4100-84ae-df0b3be3a008",
      "name": "HTTP请求1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1360,
        480
      ],
      "parameters": {
        "url": "={{ $json.Link }}",
        "options": {}
      },
      "typeVersion": 4.1,
      "alwaysOutputData": true
    },
    {
      "id": "a34c5b31-c6ba-4e87-9177-a078aa100157",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1300,
        640
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "ee3e4f81-fa05-4ad0-a46e-6452d2f3c521",
      "name": "项目列表1",
      "type": "n8n-nodes-base.itemLists",
      "position": [
        1140,
        640
      ],
      "parameters": {
        "maxItems": 5,
        "operation": "limit"
      },
      "typeVersion": 3.1
    },
    {
      "id": "f472a15d-aa5a-4c40-b283-78d69a2a9b57",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        460,
        640
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f89e199d-72e5-4426-8e9d-82f6ce39ac42",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        200
      ],
      "parameters": {
        "width": 688.6526946107781,
        "height": 522.559880239521,
        "content": "## 使用方法"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "HTML": {
      "main": [
        [
          {
            "node": "Medium",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML1": {
      "main": [
        [
          {
            "node": "Item Lists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Medium": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Item Lists": {
      "main": [
        [
          {
            "node": "Item Lists1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Item Lists1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "HTML1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        null,
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 营销

需要付费吗?

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

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

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

作者
Imperol

Imperol

@imperolq

Automation expert with years of experience helping businesses improve their efficiency and productivity with smart automations that are affordable, scalable, and flexible.

外部链接
在 n8n.io 查看

分享此工作流