2022-05-28 02:36:44 +00:00
{
2022-10-27 21:01:19 +00:00
"createdAt" : "2022-05-27T16:18:47.443Z" ,
"updatedAt" : "2022-07-18T19:42:20.524Z" ,
2022-05-28 02:36:44 +00:00
"id" : 27 ,
2022-07-13 21:00:22 +00:00
"name" : "olx ps4game che" ,
2022-07-18 21:00:57 +00:00
"active" : false ,
2022-05-28 02:36:44 +00:00
"nodes" : [
{
"parameters" : { } ,
"name" : "Start" ,
"type" : "n8n-nodes-base.start" ,
"typeVersion" : 1 ,
"position" : [
2022-06-09 21:00:39 +00:00
180 ,
2022-05-28 02:36:44 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "42f8a909-edda-44cb-88d4-1ccd97f94932"
2022-05-28 02:36:44 +00:00
} ,
{
"parameters" : {
2022-05-31 21:01:01 +00:00
"url" : "https://www.olx.ua/d/elektronika/igry-i-igrovye-pristavki/igry-dlya-pristavok/chernigov/?currency=UAH&search%5Border%5D=created_at:desc&search%5Bfilter_enum_console_manufacturers%5D%5B0%5D=2272" ,
2022-05-28 02:36:44 +00:00
"responseFormat" : "string" ,
"options" : { }
} ,
"name" : "HTTP Request" ,
"type" : "n8n-nodes-base.httpRequest" ,
"typeVersion" : 2 ,
"position" : [
2022-07-13 21:00:22 +00:00
400 ,
2022-05-28 02:36:44 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "6a0449cf-0787-4725-a2d0-38cd6d382da1"
2022-05-28 02:36:44 +00:00
} ,
{
"parameters" : {
"extractionValues" : {
"values" : [
{
2022-05-31 21:01:01 +00:00
"key" : "items" ,
2022-06-09 21:00:39 +00:00
"cssSelector" : "div.css-19ucd76" ,
2022-05-28 02:36:44 +00:00
"returnValue" : "html" ,
"returnArray" : true
}
]
} ,
2022-05-31 21:01:01 +00:00
"options" : { }
2022-05-28 02:36:44 +00:00
} ,
"name" : "HTML Extract" ,
"type" : "n8n-nodes-base.htmlExtract" ,
"typeVersion" : 1 ,
"position" : [
2022-07-12 21:00:41 +00:00
560 ,
2022-05-28 02:36:44 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "77d3849e-9047-4d5f-ab2a-669e35c5e1f1"
2022-05-31 21:01:01 +00:00
} ,
{
"parameters" : {
2022-06-09 21:00:39 +00:00
"fieldToSplitOut" : "items" ,
"options" : { }
2022-05-31 21:01:01 +00:00
} ,
"name" : "Item Lists" ,
"type" : "n8n-nodes-base.itemLists" ,
"typeVersion" : 1 ,
"position" : [
2022-07-12 21:00:41 +00:00
720 ,
2022-05-31 21:01:01 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "4d915eab-98e4-48da-b877-3e67d2105d3e"
2022-05-31 21:01:01 +00:00
} ,
{
"parameters" : {
"dataPropertyName" : "items" ,
"extractionValues" : {
"values" : [
{
"key" : "link" ,
"cssSelector" : "a.css-1bbgabe" ,
2022-06-09 21:00:39 +00:00
"returnValue" : "attribute" ,
"attribute" : "href"
2022-05-31 21:01:01 +00:00
} ,
{
2022-07-15 21:00:57 +00:00
"key" : "city" ,
2022-06-02 21:00:54 +00:00
"cssSelector" : "p.css-p6wsjo-Text.eu5v0x0"
2022-05-31 21:01:01 +00:00
}
]
} ,
"options" : { }
} ,
"name" : "HTML Extract1" ,
"type" : "n8n-nodes-base.htmlExtract" ,
"typeVersion" : 1 ,
2022-06-02 21:00:54 +00:00
"position" : [
2022-07-12 21:00:41 +00:00
900 ,
2022-06-09 21:00:39 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "265ae681-5e2e-40b6-b3be-e36ea6dac156"
2022-06-02 21:00:54 +00:00
} ,
{
"parameters" : {
"triggerTimes" : {
"item" : [
{
2022-06-09 21:00:39 +00:00
"mode" : "everyX" ,
"value" : 15 ,
"unit" : "minutes"
2022-06-02 21:00:54 +00:00
}
]
}
} ,
"name" : "Cron2" ,
"type" : "n8n-nodes-base.cron" ,
"typeVersion" : 1 ,
"position" : [
2022-07-13 21:00:22 +00:00
180 ,
480
2022-08-03 21:00:21 +00:00
] ,
"id" : "a4ef9a72-d0b6-4f4d-b29a-fbdf6450d9df"
2022-06-02 21:00:54 +00:00
} ,
{
"parameters" : {
"values" : {
"string" : [
{
2022-06-09 21:00:39 +00:00
"name" : "link" ,
2022-06-21 21:00:40 +00:00
"value" : "=https://m.olx.ua{{$json[\"link\"]}}"
2022-07-12 21:00:41 +00:00
} ,
{
"name" : "tag" ,
"value" : "ps4_games_ch"
2022-06-02 21:00:54 +00:00
}
]
} ,
"options" : { }
} ,
"name" : "Set" ,
"type" : "n8n-nodes-base.set" ,
"typeVersion" : 1 ,
2022-05-31 21:01:01 +00:00
"position" : [
2022-07-12 21:00:41 +00:00
1280 ,
2022-07-13 21:00:22 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "8f8d91d6-5606-4c2d-990b-7a11e55b983e"
2022-06-09 21:00:39 +00:00
} ,
{
"parameters" : {
"conditions" : {
"string" : [
{
2022-07-15 21:00:57 +00:00
"value1" : "={{$json[\"link\"]}}" ,
2022-06-09 21:00:39 +00:00
"operation" : "isNotEmpty"
}
]
}
} ,
"name" : "IF" ,
"type" : "n8n-nodes-base.if" ,
"typeVersion" : 1 ,
"position" : [
2022-07-12 21:00:41 +00:00
1080 ,
2022-06-09 21:00:39 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "59c0f3fb-8871-419b-82f8-2f7be4c7aa25"
2022-06-09 21:00:39 +00:00
} ,
2022-06-10 21:00:36 +00:00
{
"parameters" : {
2022-06-09 21:00:39 +00:00
"docId" : "d61nLm6Fn99jwqxd6hdT9d" ,
2022-07-13 21:00:22 +00:00
"tableId" : "Items" ,
2022-07-17 21:00:58 +00:00
"returnAll" : true ,
2022-07-12 21:00:41 +00:00
"additionalOptions" : {
"filter" : {
"filterProperties" : [
{
"field" : "tag" ,
"values" : "ps4_games_ch"
}
]
}
}
2022-06-09 21:00:39 +00:00
} ,
2022-06-10 21:00:36 +00:00
"name" : "Grist1" ,
2022-06-09 21:00:39 +00:00
"type" : "n8n-nodes-base.grist" ,
"typeVersion" : 1 ,
"position" : [
2022-07-12 21:00:41 +00:00
1280 ,
2022-07-13 21:00:22 +00:00
500
2022-06-09 21:00:39 +00:00
] ,
"credentials" : {
"gristApi" : {
"id" : "21" ,
"name" : "Grist account"
}
2022-08-03 21:00:21 +00:00
} ,
"id" : "9b5d4ca6-85e5-4565-b79b-806e27f9ca43"
2022-06-09 21:00:39 +00:00
} ,
{
"parameters" : {
2022-06-10 21:00:36 +00:00
"mode" : "removeKeyMatches" ,
"propertyName1" : "link" ,
"propertyName2" : "link"
2022-06-09 21:00:39 +00:00
} ,
2022-06-10 21:00:36 +00:00
"name" : "Merge1" ,
"type" : "n8n-nodes-base.merge" ,
2022-06-09 21:00:39 +00:00
"typeVersion" : 1 ,
"position" : [
2022-07-18 21:00:57 +00:00
1540 ,
2022-07-15 21:00:57 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "641b7c6a-0e23-41a2-93d1-691d7a3d303d"
2022-06-10 21:00:36 +00:00
} ,
{
"parameters" : {
"operation" : "create" ,
"docId" : "d61nLm6Fn99jwqxd6hdT9d" ,
2022-07-13 21:00:22 +00:00
"tableId" : "Items" ,
2022-06-10 21:00:36 +00:00
"dataToSend" : "autoMapInputs"
} ,
"name" : "Grist" ,
"type" : "n8n-nodes-base.grist" ,
"typeVersion" : 1 ,
"position" : [
2022-07-15 21:00:57 +00:00
2280 ,
2022-07-13 21:00:22 +00:00
500
2022-06-09 21:00:39 +00:00
] ,
"credentials" : {
2022-06-10 21:00:36 +00:00
"gristApi" : {
"id" : "21" ,
"name" : "Grist account"
2022-06-09 21:00:39 +00:00
}
2022-08-03 21:00:21 +00:00
} ,
"id" : "4fa92cea-ed82-443c-a924-222f4e3a5284"
2022-07-12 21:00:41 +00:00
} ,
{
"parameters" : {
"url" : "={{$json[\"link\"]}}" ,
"responseFormat" : "string" ,
"options" : { }
} ,
"name" : "HTTP Request1" ,
"type" : "n8n-nodes-base.httpRequest" ,
"typeVersion" : 2 ,
"position" : [
1700 ,
2022-07-13 21:00:22 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "dc0e86c6-d1c8-4ff3-9a88-6e4dbe436eca"
2022-07-12 21:00:41 +00:00
} ,
{
"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"
2022-07-15 21:00:57 +00:00
} ,
{
"key" : "title" ,
"cssSelector" : "h1.css-r9zjja-Text.eu5v0x0"
2022-07-12 21:00:41 +00:00
}
]
} ,
2022-07-13 21:00:22 +00:00
"options" : {
"trimValues" : true
}
2022-07-12 21:00:41 +00:00
} ,
"name" : "HTML Extract2" ,
"type" : "n8n-nodes-base.htmlExtract" ,
"typeVersion" : 1 ,
"position" : [
2022-07-13 21:00:22 +00:00
1880 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "4792cff0-44a8-4ced-a35e-157a3f3ff395"
2022-07-12 21:00:41 +00:00
} ,
2022-07-13 21:00:22 +00:00
{
"parameters" : {
"operation" : "multiStep" ,
"operations" : {
"operations" : [
{
"operation" : "resize" ,
"width" : 300 ,
"height" : -1 ,
"resizeOption" : "onlyIfLarger"
} ,
{
"operation" : "crop" ,
"width" : 300 ,
"height" : 100 ,
"positionY" : 75
}
]
} ,
"options" : { }
} ,
"name" : "Edit Image" ,
"type" : "n8n-nodes-base.editImage" ,
"typeVersion" : 1 ,
"position" : [
2022-07-15 21:00:57 +00:00
2280 ,
2022-07-13 21:00:22 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "9db379b1-5eba-4667-a0e9-a87be958d163"
2022-07-13 21:00:22 +00:00
} ,
{
"parameters" : {
"url" : "={{$json[\"image\"]}}" ,
"responseFormat" : "file" ,
"options" : { }
} ,
"name" : "HTTP Request2" ,
"type" : "n8n-nodes-base.httpRequest" ,
"typeVersion" : 2 ,
"position" : [
2022-07-15 21:00:57 +00:00
2100 ,
2022-07-13 21:00:22 +00:00
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "e2f95080-78c9-4ec0-b260-c1511067f3bd"
2022-07-13 21:00:22 +00:00
} ,
{
"parameters" : {
"functionCode" : "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem\n// Tip: You can use luxon for dates and $jmespath for querying JSON structures\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem.trim_content = $json[\"content\"].slice(0,250);\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;"
} ,
"name" : "FunctionItem" ,
"type" : "n8n-nodes-base.functionItem" ,
"typeVersion" : 1 ,
"position" : [
2022-07-15 21:00:57 +00:00
2000 ,
60
2022-08-03 21:00:21 +00:00
] ,
"id" : "1b374de6-b5bc-4cd6-848d-9faf9c9830f2"
2022-07-13 21:00:22 +00:00
} ,
{
"parameters" : {
"operation" : "sendPhoto" ,
"chatId" : "1684481" ,
"binaryData" : true ,
"additionalFields" : {
2022-07-17 21:00:58 +00:00
"caption" : "=#{{$node[\"Set\"].json[\"tag\"]}}\n<b>{{$json[\"title\"]}} - {{$json[\"price\"]}}</b>\n📍 <i>{{$node[\"Merge1\"].json[\"city\"]}}</i>\n<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">Подробнее</a>" ,
2022-07-13 21:00:22 +00:00
"parse_mode" : "HTML"
}
} ,
"name" : "Telegram" ,
"type" : "n8n-nodes-base.telegram" ,
"typeVersion" : 1 ,
"position" : [
2022-07-15 21:00:57 +00:00
2520 ,
300
2022-07-12 21:00:41 +00:00
] ,
"credentials" : {
"telegramApi" : {
"id" : "31" ,
"name" : "Telegram account"
}
2022-08-03 21:00:21 +00:00
} ,
"id" : "1d21f651-35b4-493c-82a9-7a6236c05fd9"
2022-07-15 21:00:57 +00:00
} ,
{
"parameters" : {
"values" : {
"string" : [
{
"name" : "link" ,
"value" : "={{$node[\"Merge1\"].json[\"link\"]}}"
} ,
{
"name" : "tag" ,
"value" : "={{$node[\"Set\"].json[\"tag\"]}}"
} ,
{
"name" : "city" ,
2022-07-17 21:00:58 +00:00
"value" : "={{$node[\"Merge1\"].json[\"city\"]}}"
2022-07-15 21:00:57 +00:00
} ,
{
"name" : "date" ,
"value" : "={{$now.toString()}}"
}
]
} ,
"options" : { }
} ,
"name" : "Set1" ,
"type" : "n8n-nodes-base.set" ,
"typeVersion" : 1 ,
"position" : [
2100 ,
500
2022-08-03 21:00:21 +00:00
] ,
"id" : "5f20ebc4-ca7a-44e2-8f71-9221c8154faa"
2022-05-28 02:36:44 +00:00
}
] ,
"connections" : {
"Start" : {
"main" : [
[
{
"node" : "HTTP Request" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"HTTP Request" : {
"main" : [
[
{
"node" : "HTML Extract" ,
"type" : "main" ,
"index" : 0
}
]
]
2022-05-31 21:01:01 +00:00
} ,
"HTML Extract" : {
"main" : [
[
{
"node" : "Item Lists" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"Item Lists" : {
"main" : [
[
{
2022-06-09 21:00:39 +00:00
"node" : "HTML Extract1" ,
2022-06-02 21:00:54 +00:00
"type" : "main" ,
"index" : 0
}
]
]
} ,
2022-06-09 21:00:39 +00:00
"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" : {
2022-06-02 21:00:54 +00:00
"main" : [
[
{
2022-06-10 21:00:36 +00:00
"node" : "Merge1" ,
2022-06-02 21:00:54 +00:00
"type" : "main" ,
"index" : 0
2022-06-09 21:00:39 +00:00
}
]
]
} ,
2022-06-10 21:00:36 +00:00
"Grist1" : {
2022-06-09 21:00:39 +00:00
"main" : [
2022-06-10 21:00:36 +00:00
[
{
"node" : "Merge1" ,
"type" : "main" ,
"index" : 1
}
]
2022-06-09 21:00:39 +00:00
]
} ,
2022-06-10 21:00:36 +00:00
"Merge1" : {
2022-06-09 21:00:39 +00:00
"main" : [
[
2022-06-10 21:00:36 +00:00
{
2022-07-12 21:00:41 +00:00
"node" : "HTTP Request1" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"HTTP Request1" : {
"main" : [
[
{
"node" : "HTML Extract2" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"HTML Extract2" : {
2022-07-13 21:00:22 +00:00
"main" : [
[
{
2022-07-15 21:00:57 +00:00
"node" : "Set1" ,
"type" : "main" ,
"index" : 0
} ,
{
"node" : "HTTP Request2" ,
2022-07-13 21:00:22 +00:00
"type" : "main" ,
"index" : 0
}
]
]
} ,
"Edit Image" : {
2022-07-12 21:00:41 +00:00
"main" : [
[
2022-07-13 21:00:22 +00:00
{
"node" : "Telegram" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"HTTP Request2" : {
"main" : [
[
{
"node" : "Edit Image" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
2022-07-15 21:00:57 +00:00
"Set1" : {
2022-07-13 21:00:22 +00:00
"main" : [
[
{
2022-07-15 21:00:57 +00:00
"node" : "Grist" ,
2022-07-13 21:00:22 +00:00
"type" : "main" ,
"index" : 0
2022-05-31 21:01:01 +00:00
}
]
]
2022-05-28 02:36:44 +00:00
}
} ,
2022-06-10 21:00:36 +00:00
"settings" : {
"errorWorkflow" : "25"
} ,
2022-06-09 21:00:39 +00:00
"staticData" : {
"global" : {
"oldRSSIds" : [
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null ,
null
]
}
} ,
2022-12-07 22:01:07 +00:00
"dataLoaded" : false ,
2022-07-20 21:00:15 +00:00
"pinData" : null ,
2022-12-07 22:01:07 +00:00
"versionId" : "c47074c1-fd4b-40a1-9bbf-8918c8117d23" ,
2022-06-21 21:00:40 +00:00
"tags" : [
{
"createdAt" : "2022-06-21T19:20:51.822Z" ,
2022-10-27 21:01:19 +00:00
"updatedAt" : "2022-06-21T19:20:51.822Z" ,
"id" : "3" ,
"name" : "olx"
2022-06-21 21:00:40 +00:00
}
2022-12-07 22:01:07 +00:00
]
2022-05-28 02:36:44 +00:00
}