Изменил(а) на 'flows/avtomoto25 review.json'
This commit is contained in:
449
flows/avtomoto25 review.json
Executable file
449
flows/avtomoto25 review.json
Executable file
@@ -0,0 +1,449 @@
|
||||
{
|
||||
"createdAt": "2022-06-18T18:03:07.218Z",
|
||||
"updatedAt": "2023-01-17T15:51:25.275Z",
|
||||
"id": "35",
|
||||
"name": "avtomoto25 review",
|
||||
"active": true,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "Start",
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-40,
|
||||
540
|
||||
],
|
||||
"id": "fb57ed58-d85c-4550-b9c9-d1ef1cd25173"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://avtomoto25.cn.ua",
|
||||
"responseFormat": "string",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
160,
|
||||
300
|
||||
],
|
||||
"id": "c6e4c768-6784-47df-9c76-cb5ad3b893fa"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"extractionValues": {
|
||||
"values": [
|
||||
{
|
||||
"key": "review",
|
||||
"cssSelector": "tr",
|
||||
"returnValue": "html",
|
||||
"returnArray": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"trimValues": false
|
||||
}
|
||||
},
|
||||
"name": "HTML Extract",
|
||||
"type": "n8n-nodes-base.htmlExtract",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
360,
|
||||
300
|
||||
],
|
||||
"id": "404677dd-07ae-475a-b2f1-0bed0274e396"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"fieldToSplitOut": "review",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Item Lists",
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
540,
|
||||
300
|
||||
],
|
||||
"id": "88150f3b-2c25-498d-a4ef-c05c21e4247a"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"dataPropertyName": "review",
|
||||
"extractionValues": {
|
||||
"values": [
|
||||
{
|
||||
"key": "title",
|
||||
"cssSelector": "div.mrp.name"
|
||||
},
|
||||
{
|
||||
"key": "link",
|
||||
"cssSelector": "a.post-permalink",
|
||||
"returnValue": "attribute",
|
||||
"attribute": "href"
|
||||
},
|
||||
{
|
||||
"key": "content",
|
||||
"cssSelector": "div.mrp-comment.mrp"
|
||||
},
|
||||
{
|
||||
"key": "date",
|
||||
"cssSelector": "div.entry-date.mrp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTML Extract1",
|
||||
"type": "n8n-nodes-base.htmlExtract",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
300
|
||||
],
|
||||
"id": "67aba4a6-2bbf-4cbc-9a3e-451161055b66"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"title\"]}}",
|
||||
"operation": "isNotEmpty"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
900,
|
||||
300
|
||||
],
|
||||
"id": "b9bc4358-1e48-4ed2-ba3f-026d36707e3a"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"graphApiVersion": "v14.0",
|
||||
"node": "me",
|
||||
"edge": "accounts",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Get Pages",
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1340,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
"id": "36",
|
||||
"name": "Facebook Graph account"
|
||||
}
|
||||
},
|
||||
"id": "cda3c4b5-a605-46a5-9a92-305d1ed81b0e"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"fieldToSplitOut": "data",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Split Pages",
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1540,
|
||||
300
|
||||
],
|
||||
"id": "9e8c3c66-f7e2-402a-8793-f1dfc11f718f"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"id\"]}}",
|
||||
"value2": "105101524930750"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Is Tom Travels?",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1740,
|
||||
300
|
||||
],
|
||||
"id": "a236d1bd-eb75-42a1-ba66-a2a909dbb2a1"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"httpRequestMethod": "POST",
|
||||
"graphApiVersion": "v14.0",
|
||||
"node": "={{$json[\"id\"]}}",
|
||||
"edge": "feed",
|
||||
"options": {
|
||||
"queryParameters": {
|
||||
"parameter": [
|
||||
{
|
||||
"name": "message",
|
||||
"value": "=Новий відгук від нашого випускника - {{$node[\"Merge\"].json[\"title\"]}}\n{{$node[\"Merge\"].json[\"content\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "access_token",
|
||||
"value": "={{$json[\"access_token\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "link",
|
||||
"value": "={{$node[\"Merge\"].json[\"link\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "Facebook Graph API2",
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1960,
|
||||
280
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
"id": "36",
|
||||
"name": "Facebook Graph account"
|
||||
}
|
||||
},
|
||||
"id": "2b36cc54-147b-4268-be89-0f4b6192518f"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "content",
|
||||
"propertyName2": "content"
|
||||
},
|
||||
"name": "Merge",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1140,
|
||||
300
|
||||
],
|
||||
"id": "e8f271f1-5be5-4495-aa1c-1bf407b00980"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
"tableId": "Reviews",
|
||||
"returnAll": true,
|
||||
"additionalOptions": {}
|
||||
},
|
||||
"name": "review",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
900,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
},
|
||||
"id": "dd20a46c-987c-4530-8ee5-f729e52605c9"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
"tableId": "Reviews",
|
||||
"dataToSend": "autoMapInputs"
|
||||
},
|
||||
"name": "review1",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1340,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
},
|
||||
"id": "d3a7700d-5c43-43c3-85ea-c46b0a882578"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"triggerTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyX",
|
||||
"value": 10,
|
||||
"unit": "minutes"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Cron",
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-40,
|
||||
300
|
||||
],
|
||||
"id": "fc0b3086-bc6f-4e78-9b7c-dff4e56d3885"
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"HTTP Request": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTML Extract",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTML Extract": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Item Lists",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Item Lists": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTML Extract1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTML Extract1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "IF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Pages": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Split Pages",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Split Pages": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Is Tom Travels?",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Is Tom Travels?": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Facebook Graph API2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"IF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "review1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Get Pages",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"review": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Cron": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
"staticData": null,
|
||||
"pinData": {},
|
||||
"versionId": "29d0ba98-549b-4492-97bc-b49f9b01a747",
|
||||
"triggerCount": 1,
|
||||
"tags": [
|
||||
{
|
||||
"createdAt": "2022-05-10T18:06:30.022Z",
|
||||
"updatedAt": "2022-05-10T18:06:30.022Z",
|
||||
"id": "1",
|
||||
"name": "avtomoto25"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user