Files
n8n/flows/22.json

214 lines
5.2 KiB
JSON
Raw Normal View History

2022-05-26 20:57:30 +03:00
{
2022-10-27 21:01:19 +00:00
"createdAt": "2022-05-15T05:24:23.872Z",
2022-12-22 22:00:50 +00:00
"updatedAt": "2022-12-22T19:13:24.098Z",
2022-05-26 20:57:30 +03:00
"id": 22,
"name": "rss",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-160,
740
2022-08-03 21:00:21 +00:00
],
"id": "df81ff48-035f-47d2-afe6-49422d35ad07"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"url": "https://rss.cynic.club/bridge/?action=display&bridge=Pikabu&community=hand_made&context=%D0%9F%D0%BE+%D1%81%D0%BE%D0%BE%D0%B1%D1%89%D0%B5%D1%81%D1%82%D0%B2%D1%83&filter=hot&format=Mrss"
},
"name": "RSS Feed Read",
"type": "n8n-nodes-base.rssFeedRead",
"typeVersion": 1,
"position": [
140,
560
2022-08-03 21:00:21 +00:00
],
"id": "288c833d-0698-4578-b743-840e10ae3c1b"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"categories\"]}}",
"operation": "notRegex",
"value2": "/бисер/i"
},
{
"value1": "={{$json[\"categories\"]}}",
"operation": "notRegex",
"value2": "/аксессуары/i"
},
{
"value1": "={{$json[\"categories\"]}}",
"operation": "notRegex",
"value2": "/игрушка/i"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
380,
560
2022-08-03 21:00:21 +00:00
],
"id": "5622aba9-fd76-4ed5-8d62-d13f7bf3008a"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"url": "https://www.olx.ua/elektronika/igry-i-igrovye-pristavki/igry-dlya-pristavok/chernigov/rss/"
},
"name": "RSS Feed Read1",
"type": "n8n-nodes-base.rssFeedRead",
"typeVersion": 1,
"position": [
140,
960
2022-08-03 21:00:21 +00:00
],
"id": "cceed8b7-b555-4927-90cc-0b3c37ae99ae"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"respondWith": "text",
"responseBody": "={{$json[\"feed\"]}}",
"options": {
"responseHeaders": {
"entries": [
{
"name": "content-type",
"value": "application/xml"
}
]
}
}
},
"name": "Respond to Webhook1",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1180,
580
],
2022-08-03 21:00:21 +00:00
"typeVersion": 1,
"id": "181692c6-f3dc-4395-af8a-8edc0579237b"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"path": "pikabu",
"responseMode": "responseNode",
"options": {}
},
"name": "Webhook1",
"type": "n8n-nodes-base.webhook",
"position": [
-140,
580
],
"webhookId": "f1a20d18-72bb-4d4a-8bad-0f465f6029c9",
2022-08-03 21:00:21 +00:00
"typeVersion": 1,
"id": "e9384e76-0ca6-4fe2-918c-d91a3ef29392"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"functionCode": "let feed =\n`<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<rss version=\"2.0\">\n\n<channel>\n <title>pikabu</title>\n <link>https://pikabu.ru</link>\n <description>Stay up to date with the latest changes and updates of Baserow</description>\n ${items.map(e => e.json.rss_item).join('\\n')}\n</channel>\n\n</rss>`;\n\nreturn [{\n json: {\n feed: feed\n }\n}];"
},
"name": "Prepare Response1",
"type": "n8n-nodes-base.function",
"position": [
900,
580
],
2022-08-03 21:00:21 +00:00
"typeVersion": 1,
"id": "8f3ded4f-886a-4de3-b036-978f057948c1"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"functionCode": "return {\n rss_item: \n`<item>\n <title>${item.title}</title>\n <link>${item.link}</link>\n <content>${item.content}</content>\n <pubDate>${item.isoDate}</pubDate>\n</item>`\n}"
},
"name": "Create RSS Items1",
"type": "n8n-nodes-base.functionItem",
"position": [
660,
580
],
2022-08-03 21:00:21 +00:00
"typeVersion": 1,
"id": "ee463126-3a3c-4bc4-ad6b-a200780d23c0"
2022-05-26 20:57:30 +03:00
}
],
"connections": {
"RSS Feed Read": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Create RSS Items1",
"type": "main",
"index": 0
}
]
]
},
"Webhook1": {
"main": [
[
{
"node": "RSS Feed Read",
"type": "main",
"index": 0
}
]
]
},
"Create RSS Items1": {
"main": [
[
{
"node": "Prepare Response1",
"type": "main",
"index": 0
}
]
]
},
"Prepare Response1": {
"main": [
[
{
"node": "Respond to Webhook1",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {},
2022-06-09 21:00:39 +00:00
"staticData": null,
2022-12-14 22:01:11 +00:00
"dataLoaded": true,
2022-07-20 21:00:15 +00:00
"pinData": null,
2022-12-07 22:01:07 +00:00
"versionId": "ee3a3821-be4a-47b5-9972-9987022c8bfb",
2022-12-21 22:01:02 +00:00
"triggerCount": 1,
2022-06-09 21:00:39 +00:00
"tags": [
{
"createdAt": "2022-05-19T09:37:15.931Z",
2022-10-27 21:01:19 +00:00
"updatedAt": "2022-05-19T09:37:15.931Z",
"id": "2",
"name": "my"
2022-06-09 21:00:39 +00:00
}
2022-12-07 22:01:07 +00:00
]
2022-05-26 20:57:30 +03:00
}