first commit

This commit is contained in:
nia
2022-05-26 20:57:30 +03:00
commit 6947901454
48 changed files with 5240 additions and 0 deletions

194
flows/22.json Normal file
View File

@@ -0,0 +1,194 @@
{
"id": 22,
"name": "rss",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-160,
740
]
},
{
"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
]
},
{
"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
]
},
{
"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
]
},
{
"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
],
"typeVersion": 1
},
{
"parameters": {
"path": "pikabu",
"responseMode": "responseNode",
"options": {}
},
"name": "Webhook1",
"type": "n8n-nodes-base.webhook",
"position": [
-140,
580
],
"webhookId": "f1a20d18-72bb-4d4a-8bad-0f465f6029c9",
"typeVersion": 1
},
{
"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
],
"typeVersion": 1
},
{
"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
],
"typeVersion": 1
}
],
"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
}
]
]
}
},
"createdAt": "2022-05-15T05:24:23.872Z",
"updatedAt": "2022-05-20T15:45:09.535Z",
"settings": {},
"staticData": null
}