The Easy Way to Send RSS Feeds to Email
Avoid information explosion and AI Recommendation Algorithms
Improve the efficiency of information acquisition
# install
$ npm install -g rss-mailer
# run
$ rssmailer -c path/to/config
The configure file supports .json
and .js
formats.
Example:
module.exports = {
// RSS url list
feeds: [
// Easy to use via url
"https://waynegong.cn/atom.xml",
// Full usage configuration
{
url: "https://www.ruanyifeng.com/blog/atom.xml", // Url is required
charset: "utf8", // Support 'utf8' 'gbk', default 'utf8'
timeout: 30000, // Timeout for requesting RSS feeds, default 30000 ms
},
],
sender: [
{
type: "email", // Send to email
// SMTP configure
host: "mail.waynegong.cn",
port: 465,
secure: true,
auth: {
user: "[email protected]",
pass: "******",
},
// Email configure
subject: "RSSMailer Daily",
from: "RSSMailer <[email protected]>",
to: "[email protected]",
},
{
type: "file", // Write to file
path: "output.html", // File path is required
},
],
filter: [
{
type: "fresh", // Filter based on freshness policy
fresh: 86400000, // Within the last 24 hours (24 * 60 * 60 * 1000)ms
}
],
};