Files
n8n/flows/53.json

205 lines
4.8 KiB
JSON
Executable File

{
"createdAt": "2022-07-15T11:11:44.964Z",
"updatedAt": "2023-01-03T12:39:03.274Z",
"id": 53,
"name": "olx ps4game che rss",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
400,
140
],
"id": "37e7e252-6400-42d1-a53b-8ec813176654"
},
{
"parameters": {
"docId": "d61nLm6Fn99jwqxd6hdT9d",
"tableId": "Items",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "tag",
"values": "ps4_games_ch"
}
]
}
}
},
"name": "Grist1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
600,
320
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
},
"id": "59a0fe10-70ee-44ac-a250-a34a03338d23"
},
{
"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": [
1420,
320
],
"typeVersion": 1,
"id": "0dc5983d-3d53-4d5f-8500-d5d9a3d15fe2"
},
{
"parameters": {
"path": "ps4game_che",
"responseMode": "responseNode",
"options": {}
},
"name": "Webhook1",
"type": "n8n-nodes-base.webhook",
"position": [
400,
320
],
"webhookId": "f1a20d18-72bb-4d4a-8bad-0f465f6029c9",
"typeVersion": 1,
"id": "bf644cc6-0667-4511-9edb-813436e8712a"
},
{
"parameters": {
"functionCode": "let feed =\n`<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<rss version=\"2.0\">\n\n<channel>\n <title>olx ps4 игры Чернигов</title>\n <link>https://olx.ua</link>\n <description>Stay up to date with the latest changes and updates of olx</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": [
1220,
320
],
"typeVersion": 1,
"id": "734efa5e-a4ac-4fac-a823-6215cd6ea742"
},
{
"parameters": {
"functionCode": "return {\n rss_item: \n`<item>\n <title>${item.title} - ${item.price}</title>\n <link>${item.link}</link>\n <description>${item.content}</description>\n <pubDate>${item.date}</pubDate>\n <enclosure url=\"${item.image}\" type=\"image/jpg\" />\n <category>${item.tag}</category>\n</item>`\n}"
},
"name": "Create RSS Items1",
"type": "n8n-nodes-base.functionItem",
"position": [
1020,
320
],
"typeVersion": 1,
"id": "49e0ed05-8815-4897-b00d-cdf4599447e0"
},
{
"parameters": {
"operation": "limit",
"maxItems": 10,
"keep": "lastItems"
},
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
800,
320
],
"id": "36d2bf6d-8641-493b-8585-810d62b7a2c2"
}
],
"connections": {
"Grist1": {
"main": [
[
{
"node": "Item Lists1",
"type": "main",
"index": 0
}
]
]
},
"Webhook1": {
"main": [
[
{
"node": "Grist1",
"type": "main",
"index": 0
}
]
]
},
"Prepare Response1": {
"main": [
[
{
"node": "Respond to Webhook1",
"type": "main",
"index": 0
}
]
]
},
"Create RSS Items1": {
"main": [
[
{
"node": "Prepare Response1",
"type": "main",
"index": 0
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "Create RSS Items1",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"dataLoaded": true,
"pinData": null,
"versionId": "38ee3266-4c14-4ef4-9794-fcc82e2505c3",
"triggerCount": 1,
"tags": [
{
"createdAt": "2022-06-21T19:20:51.822Z",
"updatedAt": "2022-06-21T19:20:51.822Z",
"id": "3",
"name": "olx"
}
]
}