在 Day13,我們打造一個完整的 自動化新聞翻譯工作流:透過 RSS 抓取外國新聞 → DeepL 官方 Node 翻譯 → Discord 推送。這個流程 免費、快速上手,適合個人或團隊追蹤國際新聞。
翻譯品質高
DeepL 對於中英文、日文、德文等語言的翻譯準確度高,適合新聞、文章、技術文件等。
免費額度可用
DeepL Free API 每月 50 萬字免費額度,對個人使用或小型專案已足夠。
官方 Node 支援
n8n 提供 DeepL Node,直接填入 API Key 與語言即可完成翻譯,不用自己撰寫 HTTP Request。
整體工作流如下:
DeepL API Free
安裝並啟動 n8n
npm install -g n8n
n8n start
建立 Discord Webhook
URL:例如 BBC World News
http://feeds.bbci.co.uk/news/world/rss.xml
抓取頻率:每小時一次或依需求調整
return items.map(item => {
return {
json: {
title: item.json.title,
content: item.json.contentSnippet
}
};
});
={{$json["title"]}} {{$json["content"]}}
EN
Chinese (traditional)
return items.map(item => {
// 取出翻譯文字
const text = item.json.text || "翻譯失敗";
return {
json: {
message: text
}
};
});
={{$json["message"]}}
透過 官方 DeepL Node + n8n,我們可以快速打造一個 免費、簡單、可自動化的新聞翻譯流程。
完全適合個人學習或團隊追蹤國際新聞。