8
n8n 中文网amn8n.com

通过 Bright Data 的自动化自由职业零工抓取器

中级

这是一个AI领域的自动化工作流,包含 11 个节点。主要使用 Set, Html, HttpRequest, GoogleSheets, ScheduleTrigger 等节点,结合人工智能技术实现智能自动化。 使用Bright Data和n8n的自动化自由职业零工查找器

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "HyNR7wCUHOWoSMB1",
  "meta": {
    "instanceId": "60046904b104f0f72b2629a9d88fe9f676be4035769f1f08dad1dd38a76b9480",
    "templateCredsSetupCompleted": true
  },
  "name": "通过 Bright Data 的自动化自由职业零工抓取器",
  "tags": [],
  "nodes": [
    {
      "id": "ca434966-ab56-4335-88ea-c066a3a33cf4",
      "name": "每日运行抓取器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1720,
        1400
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 9
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "f5446f3e-3eaf-44ac-b363-1fd61da36512",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "color": 4,
        "width": 1300,
        "height": 320,
        "content": "======================================="
      },
      "typeVersion": 1
    },
    {
      "id": "b7e24008-ca38-4d8a-b17c-57a979307618",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        340
      ],
      "parameters": {
        "color": 4,
        "width": 1289,
        "height": 3418,
        "content": "# 🚀 **自动化每日职位抓取工作流**"
      },
      "typeVersion": 1
    },
    {
      "id": "a83a04d5-6bec-4c7e-8d8d-538c4957a9c8",
      "name": "设置技能筛选器",
      "type": "n8n-nodes-base.set",
      "position": [
        1960,
        1400
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "442d4787-7045-46e7-a86a-ccc522413ac9",
              "name": "Skills",
              "type": "string",
              "value": "AI"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "33e2c73b-41e4-4f60-9b6c-4c954cc7e856",
      "name": "使用 Bright Data 抓取 WWR",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2200,
        1400
      ],
      "parameters": {
        "url": "https://api.brightdata.com/request",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "zone",
              "value": "n8n_unblocker"
            },
            {
              "name": "url",
              "value": "=https://weworkremotely.com/remote-jobs/search?term={{ $json.Skills }}"
            },
            {
              "name": "country",
              "value": "us"
            },
            {
              "name": "format",
              "value": "raw"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer API_KEY"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "23709278-a9bb-4b46-a418-62a15c49f6ab",
      "name": "从 HTML 中提取职位",
      "type": "n8n-nodes-base.html",
      "position": [
        2420,
        1400
      ],
      "parameters": {
        "options": {},
        "operation": "extractHtmlContent",
        "extractionValues": {
          "values": [
            {
              "key": "Job",
              "cssSelector": "#category-18 > article > ul > li.new-listing-container.feature > a > div > div.new-listing__header > h4"
            },
            {
              "key": "Company",
              "cssSelector": "#category-18 > article > ul > li.new-listing-container.feature > a > div > p.new-listing__company-name"
            },
            {
              "key": "Country",
              "cssSelector": "#category-18 > article > ul > li.new-listing-container.feature > a > div > p.new-listing__company-headquarters"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "564c4101-2929-49fe-a651-134a0addfe35",
      "name": "将职位保存至 Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2720,
        1400
      ],
      "parameters": {
        "columns": {
          "value": {
            "Job": "={{ $json.Job }}",
            "Company": "={{ $json.Company }}",
            "Location": "={{ $json.Country }}"
          },
          "schema": [
            {
              "id": "Job",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Job",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Company",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Company",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Location",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Location",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/14JmN5gkBRW6Vgevf2oNXXvEuZXPwBCk4JxQqEfJOHSw/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "14JmN5gkBRW6Vgevf2oNXXvEuZXPwBCk4JxQqEfJOHSw",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/14JmN5gkBRW6Vgevf2oNXXvEuZXPwBCk4JxQqEfJOHSw/edit?usp=drivesdk",
          "cachedResultName": "weworkremotely jobs"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "r2mDaisH6e9VkwHl",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "3354904f-1735-4e89-a0a8-1914f707ee8b",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1700,
        -20
      ],
      "parameters": {
        "color": 6,
        "width": 380,
        "height": 1640,
        "content": "## 🔹 **第一部分:触发器 + 设置筛选条件**"
      },
      "typeVersion": 1
    },
    {
      "id": "302ea26f-4b92-41c2-9859-17a937f7b141",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2140,
        -160
      ],
      "parameters": {
        "color": 5,
        "width": 420,
        "height": 1780,
        "content": "## 🌐 **第二部分:抓取与提取**"
      },
      "typeVersion": 1
    },
    {
      "id": "a789140f-8006-4cae-ad40-0e595052b0d9",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2620,
        420
      ],
      "parameters": {
        "color": 3,
        "width": 300,
        "height": 1200,
        "content": "## 📊 **第三部分:保存至 Google Sheets**"
      },
      "typeVersion": 1
    },
    {
      "id": "1c541cd3-09f3-4534-b6cb-53027d87873b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3020,
        420
      ],
      "parameters": {
        "color": 7,
        "width": 380,
        "height": 240,
        "content": "## 如果您通过此链接加入 Bright Data,我将获得少量佣金 — 感谢您为更多免费内容提供动力!"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "860467ec-cde7-45f3-aab5-814a1cab069f",
  "connections": {
    "Set Skill Filter": {
      "main": [
        [
          {
            "node": "Scrape WWR with Bright Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Scraper Daily": {
      "main": [
        [
          {
            "node": "Set Skill Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Jobs from HTML": {
      "main": [
        [
          {
            "node": "Save Jobs to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape WWR with Bright Data": {
      "main": [
        [
          {
            "node": "Extract Jobs from HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能

需要付费吗?

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

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

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

作者
Yaron Been

Yaron Been

@yaron-nofluff

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

外部链接
在 n8n.io 查看

分享此工作流