Auto backup (2022-06-10T21:00:36.400Z)
This commit is contained in:
196
flows/27.json
196
flows/27.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": 27,
|
||||
"name": "olx",
|
||||
"active": false,
|
||||
"active": true,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
@@ -99,67 +99,6 @@
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "=https://www.producthunt.com/feed?category=fintech"
|
||||
},
|
||||
"name": "ProductHunt RSS Fintech",
|
||||
"type": "n8n-nodes-base.rssFeedRead",
|
||||
"position": [
|
||||
560,
|
||||
660
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"keepOnlySet": true,
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "Startup Name",
|
||||
"value": "={{$node[\"ProductHunt RSS Fintech\"].json[\"title\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "Founder",
|
||||
"value": "={{$node[\"ProductHunt RSS Fintech\"].json[\"author\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "URL",
|
||||
"value": "={{$json[\"link\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "Publication Date",
|
||||
"value": "={{$json[\"pubDate\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "Startup Pitch",
|
||||
"value": "={{$json[\"content\"]}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Filter RSS Data1",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
770,
|
||||
660
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"functionCode": "const staticData = getWorkflowStaticData('global');\nconst newRSSIds = items.map(item => item.json[\"Date\"]);\nconst oldRSSIds = staticData.oldRSSIds; \n\nif (!oldRSSIds) {\n staticData.oldRSSIds = newRSSIds;\n return items;\n}\n\n\nconst actualNewRSSIds = newRSSIds.filter((id) => !oldRSSIds.includes(id));\nconst actualNewRSS = items.filter((data) => actualNewRSSIds.includes(data.json['Date']));\nstaticData.oldRSSIds = [...actualNewRSSIds, ...oldRSSIds];\n\nreturn actualNewRSS;\n"
|
||||
},
|
||||
"name": "Only new",
|
||||
"type": "n8n-nodes-base.function",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
970,
|
||||
660
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"triggerTimes": {
|
||||
@@ -176,20 +115,8 @@
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
660
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"functionCode": "const staticData = getWorkflowStaticData('global');\nconst newRSSIds = items.map(item => item.json[\"Date\"]);\nconst oldRSSIds = staticData.oldRSSIds; \n\nif (!oldRSSIds) {\n staticData.oldRSSIds = newRSSIds;\n return items;\n}\n\n\nconst actualNewRSSIds = newRSSIds.filter((id) => !oldRSSIds.includes(id));\nconst actualNewRSS = items.filter((data) => actualNewRSSIds.includes(data.json['Date']));\nstaticData.oldRSSIds = [...actualNewRSSIds, ...oldRSSIds];\n\nreturn actualNewRSS;\n"
|
||||
},
|
||||
"name": "Only new1",
|
||||
"type": "n8n-nodes-base.function",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1760,
|
||||
300
|
||||
220,
|
||||
640
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -233,17 +160,37 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"chatId": "1684481",
|
||||
"text": "={{$json[\"title\"]}}\n{{$json[\"date\"]}}\n{{$json[\"link\"]}}",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"name": "Telegram",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2060,
|
||||
340
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "31",
|
||||
"name": "Telegram account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Ps4_games_ch",
|
||||
"dataToSend": "autoMapInputs"
|
||||
"returnAll": true,
|
||||
"additionalOptions": {}
|
||||
},
|
||||
"name": "Grist",
|
||||
"name": "Grist1",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1760,
|
||||
540
|
||||
1340,
|
||||
580
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
@@ -254,21 +201,36 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "1684481",
|
||||
"text": "={{$json[\"title\"]}}\n{{$json[\"date\"]}}\n{{$json[\"link\"]}}",
|
||||
"additionalFields": {}
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "link",
|
||||
"propertyName2": "link"
|
||||
},
|
||||
"name": "Telegram",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"name": "Merge1",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1980,
|
||||
300
|
||||
1820,
|
||||
560
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Ps4_games_ch",
|
||||
"dataToSend": "autoMapInputs"
|
||||
},
|
||||
"name": "Grist",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2060,
|
||||
700
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "31",
|
||||
"name": "Telegram account"
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -318,28 +280,6 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"ProductHunt RSS Fintech": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Filter RSS Data1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Filter RSS Data1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Only new",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Cron2": {
|
||||
"main": [
|
||||
[
|
||||
@@ -373,42 +313,50 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"Only new": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Set": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Only new1",
|
||||
"node": "Merge1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Grist": {
|
||||
"Grist1": {
|
||||
"main": [
|
||||
[]
|
||||
[
|
||||
{
|
||||
"node": "Merge1",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Only new1": {
|
||||
"Merge1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Grist",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-05-27T16:18:47.443Z",
|
||||
"updatedAt": "2022-06-09T09:46:18.718Z",
|
||||
"settings": {},
|
||||
"updatedAt": "2022-06-10T20:57:39.661Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
"staticData": {
|
||||
"global": {
|
||||
"oldRSSIds": [
|
||||
|
||||
Reference in New Issue
Block a user