2022-07-17 21:00:58 +00:00
{
2022-10-27 21:01:19 +00:00
"createdAt" : "2022-07-17T07:56:32.590Z" ,
"updatedAt" : "2022-07-18T19:42:41.203Z" ,
2022-07-17 21:00:58 +00:00
"id" : 54 ,
"name" : "olx forbidden west" ,
2022-07-18 21:00:57 +00:00
"active" : false ,
2022-07-17 21:00:58 +00:00
"nodes" : [
{
"parameters" : { } ,
"name" : "Start" ,
"type" : "n8n-nodes-base.start" ,
"typeVersion" : 1 ,
"position" : [
180 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "7732f643-b8d1-420f-bf15-f1d654c69081"
2022-07-17 21:00:58 +00:00
} ,
{
"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" ,
"responseFormat" : "string" ,
"options" : { }
} ,
"name" : "HTTP Request" ,
"type" : "n8n-nodes-base.httpRequest" ,
"typeVersion" : 2 ,
"position" : [
400 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "36837bfa-225b-4c24-88c8-37b2f963aca8"
2022-07-17 21:00:58 +00:00
} ,
{
"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
2022-08-03 21:00:21 +00:00
] ,
"id" : "2d64162b-298b-4aad-b12e-3c279b17cc08"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"fieldToSplitOut" : "items" ,
"options" : { }
} ,
"name" : "Item Lists" ,
"type" : "n8n-nodes-base.itemLists" ,
"typeVersion" : 1 ,
"position" : [
720 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "f9faab7e-25d6-4f52-a65a-5264bcb19f57"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"dataPropertyName" : "items" ,
"extractionValues" : {
"values" : [
{
"key" : "link" ,
"cssSelector" : "a.css-1bbgabe" ,
"returnValue" : "attribute" ,
"attribute" : "href"
} ,
{
"key" : "city" ,
"cssSelector" : "p.css-p6wsjo-Text.eu5v0x0"
}
]
} ,
"options" : { }
} ,
"name" : "HTML Extract1" ,
"type" : "n8n-nodes-base.htmlExtract" ,
"typeVersion" : 1 ,
"position" : [
900 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "4865d6d3-2ec2-4084-90c7-6770ef149204"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"triggerTimes" : {
"item" : [
{
"mode" : "everyX" ,
"value" : 15 ,
"unit" : "minutes"
}
]
}
} ,
"name" : "Cron2" ,
"type" : "n8n-nodes-base.cron" ,
"typeVersion" : 1 ,
"position" : [
180 ,
480
2022-08-03 21:00:21 +00:00
] ,
"id" : "2af35674-1a76-4b71-8721-b7c65d17a0b8"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"values" : {
"string" : [
{
"name" : "link" ,
"value" : "=https://m.olx.ua{{$json[\"link\"]}}"
} ,
{
"name" : "tag" ,
"value" : "forbidden_west"
}
]
} ,
"options" : { }
} ,
"name" : "Set" ,
"type" : "n8n-nodes-base.set" ,
"typeVersion" : 1 ,
"position" : [
1280 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "bb812353-c479-4111-b88f-42fcbaa5e52f"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"conditions" : {
"string" : [
{
"value1" : "={{$json[\"link\"]}}" ,
"operation" : "isNotEmpty"
}
]
}
} ,
"name" : "IF" ,
"type" : "n8n-nodes-base.if" ,
"typeVersion" : 1 ,
"position" : [
1080 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "6d4d4677-b375-4101-b2b7-581b6f4d7dce"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"docId" : "d61nLm6Fn99jwqxd6hdT9d" ,
"tableId" : "Items" ,
"returnAll" : true ,
"additionalOptions" : {
"filter" : {
"filterProperties" : [
{
"field" : "tag" ,
"values" : "forbidden_west"
}
]
}
}
} ,
"name" : "Grist1" ,
"type" : "n8n-nodes-base.grist" ,
"typeVersion" : 1 ,
"position" : [
1280 ,
500
] ,
"credentials" : {
"gristApi" : {
"id" : "21" ,
"name" : "Grist account"
}
2022-08-03 21:00:21 +00:00
} ,
"id" : "f5561044-554e-454a-89e0-77a746964447"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"mode" : "removeKeyMatches" ,
"propertyName1" : "link" ,
"propertyName2" : "link"
} ,
"name" : "Merge1" ,
"type" : "n8n-nodes-base.merge" ,
"typeVersion" : 1 ,
"position" : [
1500 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "77635f9e-eafa-491e-98e3-599a6a030b49"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"operation" : "create" ,
"docId" : "d61nLm6Fn99jwqxd6hdT9d" ,
"tableId" : "Items" ,
"dataToSend" : "autoMapInputs"
} ,
"name" : "Grist" ,
"type" : "n8n-nodes-base.grist" ,
"typeVersion" : 1 ,
"position" : [
2280 ,
500
] ,
"credentials" : {
"gristApi" : {
"id" : "21" ,
"name" : "Grist account"
}
2022-08-03 21:00:21 +00:00
} ,
"id" : "87508268-cc61-481e-9357-1e38444c2a8c"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"url" : "={{$json[\"link\"]}}" ,
"responseFormat" : "string" ,
"options" : { }
} ,
"name" : "HTTP Request1" ,
"type" : "n8n-nodes-base.httpRequest" ,
"typeVersion" : 2 ,
"position" : [
1700 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "048b895b-ca76-43b6-ae6e-f0de47f9d268"
2022-07-17 21:00:58 +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"
} ,
{
"key" : "title" ,
"cssSelector" : "h1.css-r9zjja-Text.eu5v0x0"
}
]
} ,
"options" : {
"trimValues" : true
}
} ,
"name" : "HTML Extract2" ,
"type" : "n8n-nodes-base.htmlExtract" ,
"typeVersion" : 1 ,
"position" : [
1880 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "cc769b43-753e-47b5-a106-6f3a9c9ce9d5"
2022-07-17 21:00:58 +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" : [
2280 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "5bf60207-c0c7-48d7-aca9-eaf3fb5cc2f2"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"url" : "={{$json[\"image\"]}}" ,
"responseFormat" : "file" ,
"options" : { }
} ,
"name" : "HTTP Request2" ,
"type" : "n8n-nodes-base.httpRequest" ,
"typeVersion" : 2 ,
"position" : [
2100 ,
300
2022-08-03 21:00:21 +00:00
] ,
"id" : "98b2a13b-4ab6-41e2-bbac-c787cd31652c"
2022-07-17 21:00:58 +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" : [
2000 ,
60
2022-08-03 21:00:21 +00:00
] ,
"id" : "7a713dbd-66c3-4253-9634-e05d1842f60a"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"operation" : "sendPhoto" ,
"chatId" : "1684481" ,
"binaryData" : true ,
"additionalFields" : {
"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>" ,
"parse_mode" : "HTML"
}
} ,
"name" : "Telegram" ,
"type" : "n8n-nodes-base.telegram" ,
"typeVersion" : 1 ,
"position" : [
2520 ,
300
] ,
"credentials" : {
"telegramApi" : {
"id" : "31" ,
"name" : "Telegram account"
}
2022-08-03 21:00:21 +00:00
} ,
"id" : "daaafc28-b79c-4ea1-9151-7cde75c91117"
2022-07-17 21:00:58 +00:00
} ,
{
"parameters" : {
"values" : {
"string" : [
{
"name" : "link" ,
"value" : "={{$node[\"Merge1\"].json[\"link\"]}}"
} ,
{
"name" : "tag" ,
"value" : "={{$node[\"Set\"].json[\"tag\"]}}"
} ,
{
"name" : "city" ,
"value" : "={{$node[\"Merge1\"].json[\"city\"]}}"
} ,
{
"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" : "a5ac361a-0da7-412f-b435-1b5d63f86a82"
2022-07-17 21:00:58 +00:00
}
] ,
"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" : "HTTP Request1" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"HTTP Request1" : {
"main" : [
[
{
"node" : "HTML Extract2" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"HTML Extract2" : {
"main" : [
[
{
"node" : "Set1" ,
"type" : "main" ,
"index" : 0
} ,
{
"node" : "HTTP Request2" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"Edit Image" : {
"main" : [
[
{
"node" : "Telegram" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"HTTP Request2" : {
"main" : [
[
{
"node" : "Edit Image" ,
"type" : "main" ,
"index" : 0
}
]
]
} ,
"Set1" : {
"main" : [
[
{
"node" : "Grist" ,
"type" : "main" ,
"index" : 0
}
]
]
}
} ,
"settings" : {
"errorWorkflow" : "25"
} ,
"staticData" : null ,
2022-07-20 21:00:15 +00:00
"pinData" : null ,
2022-07-17 21:00:58 +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-07-17 21:00:58 +00:00
}
]
}