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