Skip to content

Instantly share code, notes, and snippets.

@erkantaylan
Created August 26, 2024 16:45
Show Gist options
  • Save erkantaylan/37cb5e7c94c4e15e43526b20253659d7 to your computer and use it in GitHub Desktop.
Save erkantaylan/37cb5e7c94c4e15e43526b20253659d7 to your computer and use it in GitHub Desktop.
[{"createdAt":"2024-02-16T16:29:45.145Z","updatedAt":"2024-02-26T16:09:38.334Z","id":"chGwdBYFlA1gGBhN","name":"Error Handling","active":false,"nodes":[{"parameters":{},"id":"9e5710e2-bce8-4585-9b26-afe4f570dad7","name":"Error Trigger","type":"n8n-nodes-base.errorTrigger","typeVersion":1,"position":[840,520]},{"parameters":{"authentication":"webhook","content":"=@everyone\n```json\n{{ JSON.stringify($json, null, 2)}}\n```","options":{}},"id":"a7c853e2-1520-4345-9398-4ef5907e9b7b","name":"Discord","type":"n8n-nodes-base.discord","typeVersion":2,"position":[1140,520],"credentials":{"discordWebhookApi":{"id":"VLngIRiqdWd4z6Le","name":"Discord Webhook n8n-error"}}}],"connections":{"Error Trigger":{"main":[[{"node":"Discord","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"21f454d0-18d1-4706-a0ca-598e2a302730","triggerCount":0,"tags":[]},{"createdAt":"2024-02-07T10:34:52.673Z","updatedAt":"2024-08-24T09:59:47.295Z","id":"ycae9OtKqbf8NoN8","name":"Nyaa Rss Follow","active":true,"nodes":[{"parameters":{},"id":"b6ba5d95-ea8d-4381-b4b1-58dd553b982d","name":"When clicking \"Test workflow\"","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[220,980]},{"parameters":{"resource":"database","databaseId":{"__rl":true,"value":"946029af-5a67-4ebe-8cab-fbda7c66c68a","mode":"list","cachedResultName":"AnimeRssTorrent","cachedResultUrl":"https://www.notion.so/946029af5a674ebe8cabfbda7c66c68a"}},"id":"9a61f062-7939-48bd-96d5-43c12526d9ad","name":"Notion","type":"n8n-nodes-base.notion","typeVersion":2.1,"position":[760,1060],"credentials":{"notionApi":{"id":"8FAhn4JLdqh6LPsb","name":"Notion account"}}},{"parameters":{"resource":"databasePage","operation":"getAll","databaseId":{"__rl":true,"value":"={{ $json.id }}","mode":"id"},"simple":false,"filterType":"manual","filters":{"conditions":[{"key":"Cringe|checkbox","condition":"does_not_equal","checkboxValue":true}]},"options":{}},"id":"52616f82-cef8-4686-8bc3-1198dc75f6eb","name":"Notion1","type":"n8n-nodes-base.notion","typeVersion":2.1,"position":[920,1060],"credentials":{"notionApi":{"id":"8FAhn4JLdqh6LPsb","name":"Notion account"}}},{"parameters":{"mode":"runOnceForEachItem","jsCode":"return $input.item;"},"id":"51b477dc-fd0d-4663-9726-0acc80d014a5","name":"Code3","type":"n8n-nodes-base.code","typeVersion":2,"position":[1420,1080]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"65a248bf-f9a5-45c9-83db-36123096475c","leftValue":"={{ $json.properties['Last Check Time'].date }}","rightValue":"","operator":{"type":"object","operation":"exists","singleValue":true}}],"combinator":"and"},"options":{}},"id":"c9fb3b99-0f1a-4d85-9b38-1a0d5af15bc0","name":"LastCheckTime is Not Empty","type":"n8n-nodes-base.if","typeVersion":2,"position":[1800,1080]},{"parameters":{"resource":"databasePage","operation":"update","pageId":{"__rl":true,"value":"={{ $json.id }}","mode":"id"},"propertiesUi":{"propertyValues":[{"key":"Last Check Time|date","date":"={{ DateTime.now() }}","timezone":"Etc/GMT+3"}]},"options":{}},"id":"70576987-6127-455c-bb7e-73488d95816e","name":"Save LastCheckTime","type":"n8n-nodes-base.notion","typeVersion":2.1,"position":[2180,1160],"credentials":{"notionApi":{"id":"8FAhn4JLdqh6LPsb","name":"Notion account"}}},{"parameters":{"url":"={{ $json.properties['Rss Url'].formula.string }}","options":{"ignoreSSL":true}},"id":"97aceab1-a4fd-4bcb-8714-9e444992d634","name":"RSS Read2","type":"n8n-nodes-base.rssFeedRead","typeVersion":1,"position":[2180,820],"retryOnFail":true,"notesInFlow":false},{"parameters":{"resource":"databasePage","operation":"update","pageId":{"__rl":true,"value":"={{ $('Code3').item.json.id }}","mode":"id"},"simple":"=","propertiesUi":{"propertyValues":[{"key":"Last Check Time|date","date":"={{ DateTime.now() }}","timezone":"Etc/GMT+3"}]},"options":{}},"id":"82941538-ccef-4111-9893-8ff6b0d4e705","name":"Save LastCheckTime1","type":"n8n-nodes-base.notion","typeVersion":2.1,"position":[2800,820],"credentials":{"notionApi":{"id":"8FAhn4JLdqh6LPsb","name":"Notion account"}}},{"parameters":{"rule":{"interval":[{"field":"minutes","minutesInterval":30}]}},"id":"a12b39a0-d3fc-4c07-8275-219560d23862","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.1,"position":[220,1140]},{"parameters":{"content":"## Read Rows From NOTION ","height":217.8588758822823,"width":371.50664907047985},"id":"d771c9c1-21af-4595-8c9c-ab7bca0a472b","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[709.5138099120926,1005.572043731843]},{"parameters":{"authentication":"webhook","content":"={{ $json.title }} {{ $json.link }}","options":{}},"id":"c2a4864b-639b-4051-884d-9fcca3881f2f","name":"Discord","type":"n8n-nodes-base.discord","typeVersion":2,"position":[3000,1000],"credentials":{"discordWebhookApi":{"id":"lo0kysGATwbUV2Lb","name":"Discord Webhook account"}}},{"parameters":{"unit":"seconds"},"id":"d2aed63f-6cc8-40c2-9184-c32a42305bf8","name":"Wait1","type":"n8n-nodes-base.wait","typeVersion":1,"position":[1640,1080],"webhookId":"e6c7295c-990d-4fd2-b384-bdebe6da54dc"},{"parameters":{"mode":"runOnceForEachItem","jsCode":"return $input.item;"},"id":"42139f3c-36a9-4ee5-860d-0de3191325ba","name":"Foraech Episode","type":"n8n-nodes-base.code","typeVersion":2,"position":[2800,1000]},{"parameters":{"jsCode":"let o = $('LastCheckTime is Not Empty').last().json.properties[\"Last Check Time\"].date.start;\n\nconsole.log(o);\n\nvar lastCheckDate = new Date(o);\n\n$input = $input.all().filter(item => {\n let rssDate = new Date(item.json.pubDate);\n return rssDate >= lastCheckDate; // Keep items with pubDate >= lastCheckDate\n});\n\nreturn $input;"},"id":"8db82cae-cd5b-43ef-9e3e-9be0379240f3","name":"rssDate >= lastCheckDate","type":"n8n-nodes-base.code","typeVersion":2,"position":[2460,820]},{"parameters":{"options":{}},"id":"6f072ebc-ee63-4aba-9d9d-9b8d27108064","name":"Loop Over Items","type":"n8n-nodes-base.splitInBatches","typeVersion":3,"position":[1220,1060]},{"parameters":{"url":"={{ $json.properties['Rss Url'].formula.string }}","options":{"ignoreSSL":true}},"id":"991efc6b-5659-438e-94f8-6e319242e1df","name":"RSS First Time","type":"n8n-nodes-base.rssFeedRead","typeVersion":1,"position":[2180,1000],"retryOnFail":true}],"connections":{"When clicking \"Test workflow\"":{"main":[[{"node":"Notion","type":"main","index":0}]]},"Notion":{"main":[[{"node":"Notion1","type":"main","index":0}]]},"Notion1":{"main":[[{"node":"Loop Over Items","type":"main","index":0}]]},"Code3":{"main":[[{"node":"Wait1","type":"main","index":0},{"node":"Loop Over Items","type":"main","index":0}]]},"LastCheckTime is Not Empty":{"main":[[{"node":"RSS Read2","type":"main","index":0}],[{"node":"RSS First Time","type":"main","index":0},{"node":"Save LastCheckTime","type":"main","index":0}]]},"RSS Read2":{"main":[[{"node":"rssDate >= lastCheckDate","type":"main","index":0}]]},"Schedule Trigger":{"main":[[{"node":"Notion","type":"main","index":0}]]},"Wait1":{"main":[[{"node":"LastCheckTime is Not Empty","type":"main","index":0}]]},"Foraech Episode":{"main":[[{"node":"Discord","type":"main","index":0}]]},"rssDate >= lastCheckDate":{"main":[[{"node":"Save LastCheckTime1","type":"main","index":0},{"node":"Foraech Episode","type":"main","index":0}]]},"Loop Over Items":{"main":[[],[{"node":"Code3","type":"main","index":0}]]},"RSS First Time":{"main":[[{"node":"Foraech Episode","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","timezone":"Asia/Qatar","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner","errorWorkflow":"chGwdBYFlA1gGBhN"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[18],"recurrenceRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"d4caa1ac-37b9-411b-8032-ab01dc42ae73","triggerCount":1,"tags":[{"createdAt":"2024-02-15T08:08:38.185Z","updatedAt":"2024-02-15T08:08:38.185Z","id":"Cc5X81WDycMLJLP6","name":"notion"},{"createdAt":"2024-02-15T08:08:37.217Z","updatedAt":"2024-02-15T08:08:37.217Z","id":"DYMOzau3p3R95LAo","name":"rss"},{"createdAt":"2024-02-15T08:08:35.249Z","updatedAt":"2024-02-15T08:08:35.249Z","id":"uUBneI5cpBAeGB8K","name":"anime"},{"createdAt":"2024-02-15T08:08:39.127Z","updatedAt":"2024-02-15T08:08:39.127Z","id":"PSufoCKSvapmPpEM","name":"discord"}]},{"createdAt":"2024-02-20T04:53:33.904Z","updatedAt":"2024-02-20T04:55:28.774Z","id":"CGWq90HHbg0dHxNL","name":"Printer Reminder","active":true,"nodes":[{"parameters":{"rule":{"interval":[{"field":"weeks","triggerAtDay":[1],"triggerAtHour":10,"triggerAtMinute":15}]}},"id":"edf2e4b4-4621-448a-a81f-792ac1ab4dd0","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.1,"position":[700,380]},{"parameters":{"authentication":"webhook","content":"PRINTER REMINDER https://picsum.photos/1920/1080","options":{}},"id":"8cd21619-5d95-45b6-b9a3-28d9ae9d1019","name":"Discord","type":"n8n-nodes-base.discord","typeVersion":2,"position":[940,380],"credentials":{"discordWebhookApi":{"id":"lo0kysGATwbUV2Lb","name":"Discord Webhook account"}}}],"connections":{"Schedule Trigger":{"main":[[{"node":"Discord","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[],"recurrenceRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"92ea33cc-1089-4320-bd62-a78ec5eca56d","triggerCount":1,"tags":[]},{"createdAt":"2024-02-02T18:41:44.109Z","updatedAt":"2024-02-26T16:07:55.833Z","id":"y4a2OR3Sb0QEdWE3","name":"Backup","active":true,"nodes":[{"parameters":{},"id":"97512f3d-c5e8-4f34-9109-1ffc69ca0ccc","name":"When clicking \"Test workflow\"","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[340,440]},{"parameters":{"fileSelector":"/home/node/n8n-backup.json","options":{}},"id":"f4b422b0-3c5a-4813-8430-ba82ef30a5b9","name":"Read/Write Files from Disk","type":"n8n-nodes-base.readWriteFile","typeVersion":1,"position":[780,520]},{"parameters":{"authentication":"webhook","content":"=","options":{},"files":{"values":[{}]}},"id":"9242e3f9-e052-4459-8110-4a4a24f96ef5","name":"Discord","type":"n8n-nodes-base.discord","typeVersion":2,"position":[960,520],"credentials":{"discordWebhookApi":{"id":"Bs1yjorPbor4G0Dd","name":"Discord Webhook n8n-backup"}}},{"parameters":{"command":"n8n export:workflow --all --output=/home/node/n8n-backup.json"},"id":"fcf39011-ee46-4847-b421-8dc5bdf84058","name":"Execute Command","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[600,520]},{"parameters":{"rule":{"interval":[{"triggerAtHour":23}]}},"id":"9ea438e9-6c14-4a2a-b2df-dcef23a55794","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.1,"position":[340,600]}],"connections":{"When clicking \"Test workflow\"":{"main":[[{"node":"Execute Command","type":"main","index":0}]]},"Read/Write Files from Disk":{"main":[[{"node":"Discord","type":"main","index":0}]]},"Execute Command":{"main":[[{"node":"Read/Write Files from Disk","type":"main","index":0}]]},"Schedule Trigger":{"main":[[{"node":"Execute Command","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","timezone":"Asia/Qatar","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner","errorWorkflow":"chGwdBYFlA1gGBhN"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[],"recurrenceRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"22cddc36-92d0-4d13-9990-834324470f08","triggerCount":1,"tags":[{"createdAt":"2024-02-15T08:08:39.127Z","updatedAt":"2024-02-15T08:08:39.127Z","id":"PSufoCKSvapmPpEM","name":"discord"},{"createdAt":"2024-02-15T08:08:24.349Z","updatedAt":"2024-02-15T08:08:24.349Z","id":"3YVw54NYVGlRrFWq","name":"system"}]},{"createdAt":"2024-02-26T19:04:38.991Z","updatedAt":"2024-02-26T19:38:24.188Z","id":"2UrhJ9Ak2d0V7FCc","name":"My workflow","active":false,"nodes":[{"parameters":{},"id":"39a9cb8f-443d-43af-9f33-2909bfaba860","name":"When clicking \"Test workflow\"","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[380,340]},{"parameters":{"url":"https://twttrapi.p.rapidapi.com/user-tweets","sendQuery":true,"queryParameters":{"parameters":[{"name":"username","value":"thegirlintardis"}]},"sendHeaders":true,"specifyHeaders":"json","jsonHeaders":"{\n \"X-RapidAPI-Key\": \"b51666b5aamsh01e64972bc79550p1cdb6ejsn6bde6e6039c9\",\n \"X-RapidAPI-Host\": \"twttrapi.p.rapidapi.com\"\n}","options":{}},"id":"b29ea8dc-34ca-487d-8922-b857c3caf2e1","name":"HTTP Request","type":"n8n-nodes-base.httpRequest","typeVersion":4.1,"position":[600,340]},{"parameters":{"jsCode":"$input.first().json.data.user_result.\n\n\nreturn $input.all();"},"id":"8e1b9eba-0b8a-487e-840c-e995c1ba5031","name":"Code","type":"n8n-nodes-base.code","typeVersion":2,"position":[940,340]}],"connections":{"When clicking \"Test workflow\"":{"main":[[{"node":"HTTP Request","type":"main","index":0}]]},"HTTP Request":{"main":[[{"node":"Code","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"92bf2b01-1b95-45f6-8973-96adc6434421","triggerCount":0,"tags":[]},{"createdAt":"2024-08-25T14:38:27.443Z","updatedAt":"2024-08-25T14:38:27.443Z","id":"J3Bhan0FgND8kYkG","name":"My workflow 2","active":false,"nodes":[{"parameters":{},"id":"1142c463-2ee7-4082-856b-d8022ce56345","name":"When clicking \"Test workflow\"","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[1140,520]},{"parameters":{"url":"https://nyaa.si/download/1864608.torrent","options":{"response":{"response":{"responseFormat":"file"}}}},"id":"22e93ae0-c526-4902-9726-2fd0e1d96cf4","name":"HTTP Request","type":"n8n-nodes-base.httpRequest","typeVersion":4.1,"position":[1360,520]}],"connections":{"When clicking \"Test workflow\"":{"main":[[{"node":"HTTP Request","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"da50e474-98ae-4b77-b384-7096550e1866","triggerCount":0,"tags":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment