Cron

NTV RSS Haber Toplayıcı (12 Saat)

02 January 2026

Description

Her 12 saatte bir NTV RSS feed'lerinden son haber başlıklarını toplayıp Gmail ile e-posta olarak gönderir.

Setup Guide

1. Gmail hesabınızı n8n'e ekleyin.
2. 'Code' node'unda kendi e-posta adresinizi yazın.
3. 'Cron' tetikleyicisini 12 saatte bir çalışacak şekilde ayarlayın.
4. Workflow'u kaydedin ve aktif edin.

Workflow Preview

Loading Visualization...

JSON Code

automation.json
{
    "name": "NTV RSS Haber Toplayıcı",
    "nodes": [
        {
            "parameters": {
                "rule": {
                    "interval": 12,
                    "unit": "hours"
                }
            },
            "id": "trigger",
            "name": "12 Saat Tetikleyici",
            "type": "n8n-nodes-base.cron",
            "typeVersion": 1,
            "position": [
                320,
                400
            ]
        },
        {
            "parameters": {
                "feeds": {
                    "feed": [
                        {
                            "url": "https:\/\/www.ntv.com.tr\/gundem.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/dunya-kupasi-2018.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/turkiye.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/dunya.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/ekonomi.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/spor.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/teknoloji.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/yasam.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/seyahat.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/saglik.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/sanat.rss"
                        },
                        {
                            "url": "https:\/\/www.ntv.com.tr\/otomobil.rss"
                        }
                    ]
                },
                "options": {
                    "limit": 100
                }
            },
            "id": "rss-reader",
            "name": "NTV RSS Okuyucu",
            "type": "n8n-nodes-base.rssFeedRead",
            "typeVersion": 1,
            "position": [
                540,
                400
            ]
        },
        {
            "parameters": {
                "jsCode": "\/\/ Kendi e-posta adresinizi buraya yazın\nconst myEmail = 'ornek@email.com';\n\nconst items = $input.all();\nlet htmlContent = '<h2>NTV Son Haberler<\/h2><ul>';\n\nfor (const item of items) {\n  htmlContent += `<li><a href=\"${item.link}\">${item.title}<\/a><\/li>`;\n}\n\nhtmlContent += '<\/ul>';\n\nreturn [{\n  json: {\n    to: myEmail,\n    subject: `NTV Haber Özeti - ${new Date().toLocaleDateString('tr-TR')}`,\n    html: htmlContent\n  }\n}];"
            },
            "id": "code",
            "name": "E-posta İçeriği Oluştur",
            "type": "n8n-nodes-base.code",
            "typeVersion": 1,
            "position": [
                760,
                400
            ]
        },
        {
            "parameters": {
                "fromEmail": "noreply@n8n.io",
                "toEmail": "={{$json.to}}",
                "subject": "={{$json.subject}}",
                "emailType": "html",
                "text": "={{$json.html}}",
                "options": {
                    "format": "html"
                }
            },
            "id": "gmail",
            "name": "Gmail Gönder",
            "type": "n8n-nodes-base.emailSend",
            "typeVersion": 1,
            "position": [
                980,
                400
            ],
            "credentials": {
                "smtp": "Gmail"
            }
        }
    ],
    "connections": {
        "12 Saat Tetikleyici": {
            "main": [
                [
                    {
                        "node": "NTV RSS Okuyucu",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "NTV RSS Okuyucu": {
            "main": [
                [
                    {
                        "node": "E-posta İçeriği Oluştur",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "E-posta İçeriği Oluştur": {
            "main": [
                [
                    {
                        "node": "Gmail Gönder",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "active": false,
    "settings": {
        "executionOrder": "v1"
    },
    "versionId": "1"
}