项目作者: WayneGongCN

项目描述 :
获取 RSS 资讯并通过 Email 发送。避免信息爆炸与投喂式信息流,提高信息获取效率。
高级语言: JavaScript
项目地址: git://github.com/WayneGongCN/rss-mailer.git
创建时间: 2020-12-06T07:44:14Z
项目社区:https://github.com/WayneGongCN/rss-mailer

开源协议:MIT License

下载


rss-mailer

npm

The Easy Way to Send RSS Feeds to Email

Avoid information explosion and AI Recommendation Algorithms

Improve the efficiency of information acquisition

Usage

  1. # install
  2. $ npm install -g rss-mailer
  3. # run
  4. $ rssmailer -c path/to/config

Configure File

The configure file supports .json and .js formats.

Example:

  1. module.exports = {
  2. // RSS url list
  3. feeds: [
  4. // Easy to use via url
  5. "https://waynegong.cn/atom.xml",
  6. // Full usage configuration
  7. {
  8. url: "https://www.ruanyifeng.com/blog/atom.xml", // Url is required
  9. charset: "utf8", // Support 'utf8' 'gbk', default 'utf8'
  10. timeout: 30000, // Timeout for requesting RSS feeds, default 30000 ms
  11. },
  12. ],
  13. sender: [
  14. {
  15. type: "email", // Send to email
  16. // SMTP configure
  17. host: "mail.waynegong.cn",
  18. port: 465,
  19. secure: true,
  20. auth: {
  21. user: "rssmailer@waynegong.cn",
  22. pass: "******",
  23. },
  24. // Email configure
  25. subject: "RSSMailer Daily",
  26. from: "RSSMailer <RSSMailer@waynegong.cn>",
  27. to: "me@waynegong.cn",
  28. },
  29. {
  30. type: "file", // Write to file
  31. path: "output.html", // File path is required
  32. },
  33. ],
  34. filter: [
  35. {
  36. type: "fresh", // Filter based on freshness policy
  37. fresh: 86400000, // Within the last 24 hours (24 * 60 * 60 * 1000)ms
  38. }
  39. ],
  40. };