452 lines
9.1 KiB
JSON
Executable File
452 lines
9.1 KiB
JSON
Executable File
{
|
|
"id": 47,
|
|
"name": "olx ps4 forbidden west",
|
|
"active": true,
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"name": "Start",
|
|
"type": "n8n-nodes-base.start",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
180,
|
|
300
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://www.olx.ua/d/elektronika/igry-i-igrovye-pristavki/igry-dlya-pristavok/q-horizon-forbidden-west/?currency=UAH&search%5Border%5D=created_at:desc&search%5Bfilter_enum_console_manufacturers%5D%5B0%5D=2272&last_seen_id=755093271",
|
|
"responseFormat": "string",
|
|
"options": {}
|
|
},
|
|
"name": "HTTP Request",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 2,
|
|
"position": [
|
|
380,
|
|
300
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"extractionValues": {
|
|
"values": [
|
|
{
|
|
"key": "items",
|
|
"cssSelector": "div.css-19ucd76",
|
|
"returnValue": "html",
|
|
"returnArray": true
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"name": "HTML Extract",
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
560,
|
|
300
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"fieldToSplitOut": "items",
|
|
"options": {}
|
|
},
|
|
"name": "Item Lists",
|
|
"type": "n8n-nodes-base.itemLists",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
720,
|
|
300
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"dataPropertyName": "items",
|
|
"extractionValues": {
|
|
"values": [
|
|
{
|
|
"key": "title",
|
|
"cssSelector": ".css-v3vynn-Text"
|
|
},
|
|
{
|
|
"key": "link",
|
|
"cssSelector": "a.css-1bbgabe",
|
|
"returnValue": "attribute",
|
|
"attribute": "href"
|
|
},
|
|
{
|
|
"key": "image",
|
|
"cssSelector": ".css-gwhqbt",
|
|
"returnValue": "attribute",
|
|
"attribute": "src"
|
|
},
|
|
{
|
|
"key": "date",
|
|
"cssSelector": "p.css-p6wsjo-Text.eu5v0x0"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"name": "HTML Extract1",
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
900,
|
|
300
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"triggerTimes": {
|
|
"item": [
|
|
{
|
|
"mode": "everyX",
|
|
"value": 15,
|
|
"unit": "minutes"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"name": "Cron2",
|
|
"type": "n8n-nodes-base.cron",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
200,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"values": {
|
|
"string": [
|
|
{
|
|
"name": "link",
|
|
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
|
|
},
|
|
{
|
|
"name": "tag",
|
|
"value": "ps4_forbidden_west"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"name": "Set",
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1280,
|
|
320
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"conditions": {
|
|
"string": [
|
|
{
|
|
"value1": "={{$json[\"title\"]}}",
|
|
"operation": "isNotEmpty"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"name": "IF",
|
|
"type": "n8n-nodes-base.if",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1080,
|
|
300
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
|
"tableId": "Ps4_games_ch",
|
|
"returnAll": true,
|
|
"additionalOptions": {
|
|
"filter": {
|
|
"filterProperties": [
|
|
{
|
|
"field": "tag",
|
|
"values": "ps4_forbidden_west"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"name": "Grist1",
|
|
"type": "n8n-nodes-base.grist",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1280,
|
|
580
|
|
],
|
|
"credentials": {
|
|
"gristApi": {
|
|
"id": "21",
|
|
"name": "Grist account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "removeKeyMatches",
|
|
"propertyName1": "link",
|
|
"propertyName2": "link"
|
|
},
|
|
"name": "Merge1",
|
|
"type": "n8n-nodes-base.merge",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1480,
|
|
420
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "create",
|
|
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
|
"tableId": "Ps4_games_ch",
|
|
"dataToSend": "autoMapInputs"
|
|
},
|
|
"name": "Grist",
|
|
"type": "n8n-nodes-base.grist",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1700,
|
|
580
|
|
],
|
|
"credentials": {
|
|
"gristApi": {
|
|
"id": "21",
|
|
"name": "Grist account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "={{$json[\"link\"]}}",
|
|
"responseFormat": "string",
|
|
"options": {}
|
|
},
|
|
"name": "HTTP Request1",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 2,
|
|
"position": [
|
|
1700,
|
|
260
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"extractionValues": {
|
|
"values": [
|
|
{
|
|
"key": "price",
|
|
"cssSelector": "h3.css-okktvh-Text.eu5v0x0"
|
|
},
|
|
{
|
|
"key": "content",
|
|
"cssSelector": "div.css-g5mtbi-Text"
|
|
},
|
|
{
|
|
"key": "image",
|
|
"cssSelector": "img.css-1bmvjcs",
|
|
"returnValue": "attribute",
|
|
"attribute": "src"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"name": "HTML Extract2",
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1900,
|
|
260
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "sendPhoto",
|
|
"chatId": "1684481",
|
|
"file": "={{$json[\"image\"]}}",
|
|
"additionalFields": {
|
|
"caption": "=#{{$node[\"Set\"].json[\"tag\"]}}\n<b>{{$node[\"Merge1\"].json[\"title\"]}} - {{$json[\"price\"]}}</b>\n<i>{{$node[\"Merge1\"].json[\"date\"]}}</i>\n{{$json[\"content\"]}}\n<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">ссылка</a>",
|
|
"parse_mode": "HTML"
|
|
}
|
|
},
|
|
"name": "Telegram2",
|
|
"type": "n8n-nodes-base.telegram",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
2100,
|
|
260
|
|
],
|
|
"credentials": {
|
|
"telegramApi": {
|
|
"id": "31",
|
|
"name": "Telegram account"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"Start": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTTP Request",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"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
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Cron2": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTTP Request",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"HTML Extract1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "IF",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"IF": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Set",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Set": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Grist1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge1",
|
|
"type": "main",
|
|
"index": 1
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Merge1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Grist",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "HTTP Request1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"HTTP Request1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTML Extract2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"HTML Extract2": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Telegram2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"createdAt": "2022-07-12T18:37:41.482Z",
|
|
"updatedAt": "2022-07-12T18:47:09.093Z",
|
|
"settings": {
|
|
"errorWorkflow": "25"
|
|
},
|
|
"staticData": null,
|
|
"tags": [
|
|
{
|
|
"id": "3",
|
|
"name": "olx",
|
|
"createdAt": "2022-06-21T19:20:51.822Z",
|
|
"updatedAt": "2022-06-21T19:20:51.822Z"
|
|
}
|
|
]
|
|
} |