This application scrapes the "Just In" section of ABC News and generates an RSS feed.
Grab the latest binary here, deb, rpm, etc: https://github.com/arran4/abc-justin-rss/releases/
Install go 1.24+
Run `go install`:```bashgo install github.com/arran4/abc-justin-rss/cmd/abcjustinrss@latest```
This installs to `$HOME/go/bin` (typically check with `go env`)
```bashabcjustinrss -output /var/www/localhost/htdocs/rss/abcjustinrss.xml```
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/abcjustinrss -output /var/www/localhost/htdocs/rss/abcjustinrss.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/abcjustinrss -output ~/public_html/rss/abcjustinrss.xml ```
Remember to modify `~` with the correct value and `go/bin` too if you're using a custom go env location
1. Create a systemd service file at `/etc/systemd/system/abcjustinrss.service`:```ini[Unit]Description=ABC News Just-in RSS Feed Creator
[Service]Type=oneshotExecStart=/usr/bin/abcjustinrss -output /var/www/localhost/htdocs/rss/abcjustinrss.xmlUser=apacheGroup=apache```
2. Create a systemd timer file at `/etc/systemd/system/everyhour@.timer`:
```ini[Unit]Description=Monthly Timer for %i service
[Timer]OnCalendar=-- :00:00AccuracySec=1hRandomizedDelaySec=1hPersistent=trueUnit=%i.service
[Install]WantedBy=default.target```
3. Reload systemd and start the service: ```bash sudo systemctl daemon-reload sudo systemctl enable --now everyhour@abcjustinrss.timer ```
1. Create a systemd service file at `$HOME/.config/systemd/user/abcjustinrss.service`:```ini[Unit]Description=ABC News Just-in RSS Feed Creator
[Service]Type=oneshotExecStart=%h/go/bin/abcjustinrss -output %h/public_html/rss/abcjustinrss.xml```
Remember to modify $HOME with the correct value and `go/bin` too if you're using a custom go env location
2. Create a systemd timer file at `$HOME/.config/systemd/user/everyhour@.timer`:
```ini[Unit]Description=Monthly Timer for %i service
[Timer]OnCalendar=-- :00:00AccuracySec=1hRandomizedDelaySec=1hPersistent=trueUnit=%i.service
[Install]WantedBy=default.target```
3. Reload systemd and start the service: ```bash systemctl --user daemon-reload && systemctl --user enable --now everyhour@abcjustinrss.timer ```
Refer to documentation for setting up public_html directories
http://localhost/~$USERNAME/rss/abcjustinrss.xml
Add the following configuration to your Apache setup (e.g., `/etc/httpd/conf.d/rss.conf`):```apache
Refer to documentation for setting up public_html directories
Add this to your Nginx server block:```nginxserver { listen 80; server_name example.com;
location /rss/ { root /var/www/localhost/htdocs; autoindex on; }}```
This project is licensed under the GNU General Public License v3 (GPLv3). See the LICENSE file for details.