使用 Brightdata 和 OpenRouter AI 从 Booking.com 抓取带价格的酒店列表
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 18 个节点。主要使用 If, Set, Wait, Aggregate, SplitInBatches 等节点。 使用 Brightdata 和 OpenRouter AI 从 Booking.com 抓取带价格的酒店列表
前置要求
- •无特殊前置要求,导入即可使用
使用的节点 (18)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "4a11afdb3c52fd098e3eae9fad4b39fdf1bbcde142f596adda46c795e366b326",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "25856d57-7004-4e77-b424-267fc8a2136a",
"name": "参数",
"type": "n8n-nodes-base.set",
"position": [
-1200,
272
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "d16e4ff1-02f6-4627-8eed-f1dc94b37bda",
"name": "city",
"type": "string",
"value": "={{ $json.chatInput }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b1e2690a-2c9d-493a-9ebe-e2e60b10fe75",
"name": "OpenRouter 聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
720,
-96
],
"parameters": {
"options": {
"temperature": 0
}
},
"credentials": {
"openRouterApi": {
"id": "KElXI3DlHnhrYSjM",
"name": "OpenRouter PrestaM"
}
},
"typeVersion": 1
},
{
"id": "53856c53-d3ac-4502-97ce-3dcc1b3c0944",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1472,
-448
],
"parameters": {
"width": 704,
"height": 496,
"content": "# 酒店预订抓取器"
},
"typeVersion": 1
},
{
"id": "0086bb48-c55d-4470-a0e0-3e03502bdb67",
"name": "再次检查快照",
"type": "n8n-nodes-base.noOp",
"position": [
400,
384
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f025118a-7158-4c7f-8c16-cbd6735e618b",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
192,
288
],
"webhookId": "90ced54f-0f59-4cbf-a3ba-f4653c84656a",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "f113acb4-d92c-4e28-ab8d-46a760c7a492",
"name": "检查结果是否就绪",
"type": "n8n-nodes-base.if",
"position": [
-176,
216
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "fa03d52a-2e6f-47a6-86e3-80038c3f644c",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "ready"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "971b3f97-6bd8-4632-a369-0574b6ac57dd",
"name": "从URL启动批量提取",
"type": "@brightdata/n8n-nodes-brightdata.brightData",
"notes": "👉 Get your free Bright Data API key here: Bright Data https://get.brightdata.com/unstoppable",
"position": [
-976,
272
],
"parameters": {
"urls": "=[{\"url\":\"https://www.booking.com\",\"location\":\"{{ $json.city }}\",\"check_in\":\"2025-11-01T00:00:00.000Z\",\"check_out\":\"2025-11-08T00:00:00.000Z\",\"adults\":2,\"children\":1,\"rooms\":1,\"property_type\":\"Hostels\",\"currency\":\"\",\"country\":\"\"}]",
"resource": "webScrapper",
"operation": "triggerCollectionByUrl",
"dataset_id": {
"__rl": true,
"mode": "list",
"value": "gd_m4bf7a917zfezv9d5",
"cachedResultName": " Booking Listings Search"
},
"requestOptions": {}
},
"credentials": {
"brightdataApi": {
"id": "i897C8Zq5VcQXQU9",
"name": "BrightData PrestaM"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "46ac9648-9c1f-4c4b-88c9-64f2bdc95c26",
"name": "检查批量提取状态",
"type": "@brightdata/n8n-nodes-brightdata.brightData",
"notes": "👉 Get your free Bright Data API key here: Bright Data https://get.brightdata.com/unstoppable",
"position": [
-400,
216
],
"parameters": {
"resource": "webScrapper",
"operation": "monitorProgressSnapshot",
"snapshot_id": "={{ $('Initiate batch extraction from URL').item.json.snapshot_id }}",
"requestOptions": {}
},
"credentials": {
"brightdataApi": {
"id": "i897C8Zq5VcQXQU9",
"name": "BrightData PrestaM"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "711d58dc-9f61-4050-a587-f967c18f9b36",
"name": "酒店",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-624,
288
],
"parameters": {
"options": {
"reset": true
}
},
"typeVersion": 3
},
{
"id": "14ab09c3-230f-4c47-a48e-c98493791c34",
"name": "下载快照内容",
"type": "@brightdata/n8n-nodes-brightdata.brightData",
"notes": "👉 Get your free Bright Data API key here: Bright Data https://get.brightdata.com/unstoppable",
"onError": "continueErrorOutput",
"position": [
80,
-192
],
"parameters": {
"resource": "webScrapper",
"operation": "downloadSnapshot",
"snapshot_id": "={{ $('Check the status of a batch extraction').item.json.snapshot_id }}",
"requestOptions": {}
},
"credentials": {
"brightdataApi": {
"id": "i897C8Zq5VcQXQU9",
"name": "BrightData PrestaM"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "80eedc12-1084-4f69-946e-e694635b69cb",
"name": "清理数据",
"type": "n8n-nodes-base.set",
"position": [
272,
-320
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0959a683-5e37-4542-b227-a3d99ed4473a",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "e9bd6f96-cf55-4aab-8fa7-8c0801058b34",
"name": "address",
"type": "string",
"value": "={{ $json.address }}"
},
{
"id": "56cd3a10-2969-4a36-92b0-2b741be118f5",
"name": "original_price",
"type": "number",
"value": "={{ $json.original_price }}"
},
{
"id": "47f07b88-970a-43a8-87ad-33e90328e796",
"name": "final_price",
"type": "number",
"value": "={{ $json.final_price }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c84f4df4-bb8e-42b3-8072-08a7d8a52b3e",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-1424,
272
],
"webhookId": "ffe54650-b98b-45fa-9cb3-31421837e6fb",
"parameters": {
"options": {
"responseMode": "lastNode"
}
},
"typeVersion": 1.3
},
{
"id": "37667062-07ee-41eb-9358-5daa9c34be5f",
"name": "聚合",
"type": "n8n-nodes-base.aggregate",
"position": [
496,
-320
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData"
},
"typeVersion": 1
},
{
"id": "c62e2982-00fb-43e1-9320-820ae7e5101c",
"name": "人性化结果",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
720,
-320
],
"parameters": {
"text": "={{ $json }}",
"options": {
"systemMessage": "=Convert this list of hotels into a well-presented list for human display.\n\nUse the CALC tool to show prices in euros.\n\nStart the response with 'Here is the list of hotels available on Booking in the city of' followed by the name of the city"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "b8f16cb1-bf89-4c34-b9c1-c3a0422ac940",
"name": "计算器",
"type": "@n8n/n8n-nodes-langchain.toolCalculator",
"position": [
864,
-96
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2e4ba580-7546-4360-b18b-99dc7c60fd83",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1472,
128
],
"parameters": {
"color": 6,
"width": 752,
"height": 320,
"content": "## 开始"
},
"typeVersion": 1
},
{
"id": "08e27b2b-a6b9-492b-92c1-79b8bcad2271",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-688,
112
],
"parameters": {
"color": 2,
"width": 1264,
"height": 496,
"content": "## 等待结果"
},
"typeVersion": 1
},
{
"id": "d84fd647-a202-4158-a156-c04504143a44",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
-416
],
"parameters": {
"color": 4,
"width": 1136,
"height": 496,
"content": "## 处理酒店列表"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Wait": {
"main": [
[
{
"node": "check Snapshot Again",
"type": "main",
"index": 0
}
]
]
},
"hotels": {
"main": [
[],
[
{
"node": "Check the status of a batch extraction",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Human Friendly Results",
"type": "main",
"index": 0
}
]
]
},
"Calculator": {
"ai_tool": [
[
{
"node": "Human Friendly Results",
"type": "ai_tool",
"index": 0
}
]
]
},
"clean data": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"parameters": {
"main": [
[
{
"node": "Initiate batch extraction from URL",
"type": "main",
"index": 0
}
]
]
},
"check Snapshot Again": {
"main": [
[
{
"node": "hotels",
"type": "main",
"index": 0
}
]
]
},
"check if result ready": {
"main": [
[
{
"node": "Download the snapshot content",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Human Friendly Results": {
"main": [
[]
]
},
"OpenRouter Chat Model2": {
"ai_languageModel": [
[
{
"node": "Human Friendly Results",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "parameters",
"type": "main",
"index": 0
}
]
]
},
"Download the snapshot content": {
"main": [
[
{
"node": "clean data",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Initiate batch extraction from URL": {
"main": [
[
{
"node": "hotels",
"type": "main",
"index": 0
}
]
]
},
"Check the status of a batch extraction": {
"main": [
[
{
"node": "check if result ready",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用AI和Freepik将Reddit商业痛点转换为病毒式LinkedIn内容
使用AI和Freepik将Reddit商业痛点转换为病毒式LinkedIn内容
If
Set
Code
+16
48 节点Daniel Lianes
内容创作
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
Set
Code
Wait
+20
96 节点Paul
内容创作
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+26
156 节点Diptamoy Barman
内容创作
使用Bright Data的SERP数据AI分析创建数据驱动的SEO内容简报
使用Bright Data的SERP数据AI分析创建数据驱动的SEO内容简报
Set
Code
Limit
+11
27 节点phil
AI 摘要总结
使用AI自动化Morning Brew风格Reddit摘要并发布至DEV
使用AI自动化Morning Brew风格Reddit摘要并发布至DEV
If
Set
Wait
+13
26 节点Angel Menendez
AI 摘要总结
PDF 转订单
使用AI将PDF采购订单自动化转换为Adobe Commerce销售订单
If
Set
Code
+19
96 节点JKingma
文档提取
工作流信息
难度等级
高级
节点数量18
分类2
节点类型12
作者
phil
@phile-com AI automation: 90% time saved on repetitive tasks: product sheets, after-sales chatbots, etc. 🚀 save time, win customers
外部链接
在 n8n.io 查看 →
分享此工作流