This application scrapes the “Kohler Report” section of ABC News and generates an RSS feed. It supports both CLI and CGI modes.
Grab the latest binary here: https://github.com/arran4/abc-kohler-report-rss/releases/
Install go 1.24+
Run go install:
go install github.com/arran4/abc-kohler-report-rss/cmd/abckohlerreportrss@latestThis installs to $HOME/go/bin (typically; check with
go env).
Generate RSS Feed:
abckohlerreportrss -output /var/www/localhost/htdocs/rss/abckohlerreportrss.xmlPlace abckohlerreportrss-cgi in your server’s CGI
directory (e.g.,
/var/www/htdocs/cgi-bin/abckohlerreportrss-cgi).
Ensure it is executable:
chmod +x /var/www/htdocs/cgi-bin/abckohlerreportrss-cgiAccess it via URL (e.g.,
http://example.com/cgi-bin/abckohlerreportrss-cgi).
Add a cron job to run the script periodically: 1. Edit the root
crontab: bash sudo crontab -e 2. Add the following line:
bash */15 * * * * /usr/local/bin/abckohlerreportrss -output /var/www/localhost/htdocs/rss/abckohlerreportrss.xml
Add a cron job to run the script periodically: 1. Edit the user’s
crontab: bash crontab -e 2. Add the following line:
bash */15 * * * * ~/go/bin/abckohlerreportrss -output ~/public_html/rss/abckohlerreportrss.xml
/etc/systemd/system/abckohlerreportrss.service:[Unit]
Description=ABC News Kohler Report RSS Feed Creator
[Service]
Type=oneshot
ExecStart=/usr/bin/abckohlerreportrss -output /var/www/localhost/htdocs/rss/abckohlerreportrss.xml
User=apache
Group=apache/etc/systemd/system/everyhour@.timer:[Unit]
Description=Monthly Timer for %i service
[Timer]
OnCalendar=*-*-* *:00:00
AccuracySec=1h
RandomizedDelaySec=1h
Persistent=true
Unit=%i.service
[Install]
WantedBy=default.targetReload systemd and start the service:
sudo systemctl daemon-reload
sudo systemctl enable --now everyhour@abckohlerreportrss.timer$HOME/.config/systemd/user/abckohlerreportrss.service:[Unit]
Description=ABC News Kohler Report RSS Feed Creator
[Service]
Type=oneshot
ExecStart=%h/go/bin/abckohlerreportrss -output %h/public_html/rss/abckohlerreportrss.xml$HOME/.config/systemd/user/everyhour@.timer:[Unit]
Description=Monthly Timer for %i service
[Timer]
OnCalendar=*-*-* *:00:00
AccuracySec=1h
RandomizedDelaySec=1h
Persistent=true
Unit=%i.service
[Install]
WantedBy=default.targetReload systemd and start the service:
systemctl --user daemon-reload && systemctl --user enable --now everyhour@abckohlerreportrss.timerRefer to documentation for setting up public_html directories
http://localhost/~$USERNAME/rss/abckohlerreportrss.xml
Add the following configuration to your Apache setup (e.g.,
/etc/httpd/conf.d/rss.conf):
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/localhost/htdocs/rss
<Directory "/var/www/localhost/htdocs/rss">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>Refer to documentation for setting up public_html directories
Add this to your Nginx server block:
server {
listen 80;
server_name example.com;
location /rss/ {
root /var/www/localhost/htdocs;
autoindex on;
}
}