使用Apify爬虫和GPT-4o Mini提取YouTube创作者邮箱
这是一个AI Summarization、Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 Set、HttpRequest、ManualTrigger、SplitInBatches、Agent 等节点。 使用Apify爬虫和GPT-4o Mini提取YouTube创作者邮箱
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (12 个)
{
"meta": {
"instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "42c65e43-6fd0-4701-b237-4d308767dc71",
"name": "当点击\"执行工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1328,
4064
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3ee44563-519c-41d9-ac0a-e554c398b562",
"name": "便签17",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1840,
3920
],
"parameters": {
"width": 400,
"height": 928,
"content": "## ⚙️ 设置说明"
},
"typeVersion": 1
},
{
"id": "77b25aac-86e6-4eab-8b6d-eabe92ae9a28",
"name": "便签18",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1392,
3920
],
"parameters": {
"color": 7,
"width": 1392,
"height": 928,
"content": "# 📨 YouTube创作者邮箱查找器 (n8n + Apify + OpenAI)"
},
"typeVersion": 1
},
{
"id": "9243bdc9-5d5f-41f8-b219-fd0195e52367",
"name": "结构化输出解析器4",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-224,
4496
],
"parameters": {
"jsonSchemaExample": "{\n\t\"emails\": [\"email1\", \"email2\"]\n}"
},
"typeVersion": 1.3
},
{
"id": "93eab497-180b-4430-91fb-f29abb01d59f",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-528,
4624
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4l6TDfLZVFS24g3X",
"name": "OpenAi account 4"
}
},
"typeVersion": 1.2
},
{
"id": "e1060cad-64e1-4c74-9bbe-05b270116c9a",
"name": "搜索YouTube",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1216,
4672
],
"parameters": {
"url": "=https://api.apify.com/v2/acts/streamers~youtube-scraper/run-sync-get-dataset-items\n",
"method": "POST",
"options": {},
"jsonBody": "={\n \"dateFilter\": \"month\",\n \"downloadSubtitles\": false,\n \"hasCC\": false,\n \"hasLocation\": false,\n \"hasSubtitles\": false,\n \"is360\": false,\n \"is3D\": false,\n \"is4K\": false,\n \"isBought\": false,\n \"isHD\": false,\n \"isHDR\": false,\n \"isLive\": false,\n \"isVR180\": false,\n \"lengthFilter\": \"under4\",\n \"maxResultStreams\": 0,\n \"maxResults\": {{ $json.channels }},\n \"maxResultsShorts\": 0,\n \"oldestPostDate\": \"10 days\",\n \"preferAutoGeneratedSubtitles\": false,\n \"saveSubsToKVS\": false,\n \"searchQueries\": [\n \"{{ $json.Search }}\"\n ],\n \"sortingOrder\": \"relevance\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth"
},
"credentials": {
"httpQueryAuth": {
"id": "wR5zdRq0CfAhl2yx",
"name": "Query Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "5b5d1252-9917-490a-ab37-21125383101b",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-880,
4192
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "21d45ff7-7e36-4bc3-86aa-c9532050549d",
"name": "便签19",
"type": "n8n-nodes-base.stickyNote",
"position": [
-624,
4464
],
"parameters": {
"color": 3,
"width": 288,
"height": 304,
"content": "### 1️⃣ 设置OpenAI连接"
},
"typeVersion": 1
},
{
"id": "e6f062bd-6b74-4639-b0c0-409d233c27da",
"name": "设置搜索词和搜索次数",
"type": "n8n-nodes-base.set",
"position": [
-1136,
4064
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "86221d8e-18d1-4a37-9ffe-b31db3a3441d",
"name": "Search",
"type": "string",
"value": "n8n workflows"
},
{
"id": "59c2fc27-8a31-4760-b2ea-713e676a2be8",
"name": "channels",
"type": "string",
"value": "2"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "f4e3e8ac-b072-42fc-8c7b-b9d260caffd5",
"name": "爬取频道",
"type": "n8n-nodes-base.httpRequest",
"position": [
-624,
4080
],
"parameters": {
"url": "=https://api.apify.com/v2/acts/apidojo~youtube-scraper/run-sync-get-dataset-items\n",
"method": "POST",
"options": {},
"jsonBody": "={\n \"customMapFunction\": \"(object) => { return {...object} }\",\n \"duration\": \"all\",\n \"features\": \"all\",\n \"getTrending\": false,\n \"includeShorts\": false,\n \"maxItems\": 1,\n \"sort\": \"r\",\n \"startUrls\": [\n \"{{ $json.channelUrl }}\"\n ],\n \"uploadDate\": \"all\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth"
},
"credentials": {
"httpQueryAuth": {
"id": "wR5zdRq0CfAhl2yx",
"name": "Query Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "9ba55e16-493f-4d0d-808a-a8de656a02fe",
"name": "便签20",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1312,
4288
],
"parameters": {
"color": 3,
"width": 288,
"height": 512,
"content": "### 2️⃣ 设置Apify连接"
},
"typeVersion": 1
},
{
"id": "6a580837-44e4-4abe-acd8-e86a8acae04e",
"name": "提取邮箱地址",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-400,
4192
],
"parameters": {
"text": "={{ $json.description }}",
"options": {
"systemMessage": "extract email addresses from this. if they are in a bad format, format them. \n\noutput likd this. \n\n\n{\n\t\"emails\": [\"email1\", \"email2\"]\n}"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.2
}
],
"pinData": {},
"connections": {
"Search Youtube": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Scrape Channels",
"type": "main",
"index": 0
}
]
]
},
"Scrape Channels": {
"main": [
[
{
"node": "Extract Email Address",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model3": {
"ai_languageModel": [
[
{
"node": "Extract Email Address",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Extract Email Address": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser4": {
"ai_outputParser": [
[
{
"node": "Extract Email Address",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Set Search Term and # of searches": {
"main": [
[
{
"node": "Search Youtube",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Set Search Term and # of searches",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于AI Summarization、Multimodal AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
分享此工作流