šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/firefart/rss_fetcher

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/firefart/rss_fetcher

v0.0.0-20250125120534-bb4efe7cfbc7
Source
Go
Version published
Created
Source

RSS Fetcher

This little GO program is intended to fetch all configured RSS or ATOM feeds every hour (configurable) and send new entries per E-Mail.

This project is mainly written because IFTT can not handle crt.sh feeds :/

Expected errors during execution are also sent via E-Mail to the E-Mail address configured in config.json.

For sending mails you should setup a local SMTP server like postfix to handle resubmission, signing and so on for you. SMTP authentication is currently not implemented.

The program keeps the last date of the last entry per feed in it's database to compare it to on the next fetch. We can't just use the current date because crt.sh is caching it's feeds and they do not appear at the time written in the feed.

Installation on a systemd based system

  • Build binary or download it
make

or

go get
go build

or

make_linux.bat
make_windows.bat
  • Add a user to run the binary
adduser --system rss
  • Copy everything to home dir
cp -R checkout_dir /home/rss/
  • Modify run time (if you want to run it at other intervalls)
vim /home/rss/rss_fetcher.timer
  • Edit the config
cp /home/rss/config.json.sample /home/rss/config.json
vim /home/rss/config.json
  • Install the service and timer files
./install_service.sh
  • Watch the logs
journalctl -u rss_fetcher.service -f

Config Sample

{
  "timeout": 10,
  "mailserver": "localhost",
  "mailport": 25,
  "mailfrom": "RSS <a@a.com>",
  "mailto": "People <b@b.com>",
  "mailonerror": true,
  "mailtoerror": "c@c.com",
  "database": "rss.db",
  "globalignorewords": ["ignore1", "ignore2"],
  "feeds": [
    {
      "title": "Certificates *.aaa.com",
      "url": "https://crt.sh/atom?q=%25.aaa.com",
      "ignorewords": ["[Precertificate]", "ignore2"]
    },
    {
      "title": "Certificates *.bbb.com",
      "url": "https://crt.sh/atom?q=%25.bbb.com"
    }
  ]
}

FAQs

Package last updated on 25 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts