~japanoise/feedbag

rss yourself to the path of madness
b8e16fec — japanoise 2 years ago
Another cool blog
beb74108 — japanoise 2 years ago
Fix img tags
607f5f64 — japanoise 2 years ago
Add some more feeds

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~japanoise/feedbag
read/write
git@git.sr.ht:~japanoise/feedbag

You can also use your local clone with git send-email.

#the feed bag

screenshot

very simple, very dumb feed reader. cgi, but I don't recommend it on the public internet because it'll eat up your resources. serve it locally as suggested below.

#install/howto

  1. edit it to your heart's content. you probably won't like my feed otherwise :)
    • the default theme is based on base16-ocean, which is an inoffensive dark theme. feel free to tweak that if you hate your eyes or otherwise want something different.
  2. get feedparser and bs4: pip3 install feedparser beautifulsoup4
  3. get a nice server going: python3 -m http.server --bind localhost --cgi 8000
    • make sure you have your firewall set up to NOT serve 8000 on the public internet, or you'll pwn yourself
  4. then drop the .py file into ~/cgi-bin/: ln -s $PWD/feedbag.py ~/cgi-bin/
  5. now navigate to it in your browser

#systemd

if your system is infected with this dangerous computer virus:

  1. mkdir -p ~/.config/systemd/user/
  2. cat >> ~/.config/systemd/user/python-cgi.service:
[Unit]
Description=Python CGI server
Documentation=man:python(1)


[Service]
Type=simple
ExecStart=/usr/bin/python3 -m http.server --bind localhost --cgi 8000
Restart=on-failure
TimeoutStartSec=0

[Install]
WantedBy=default.target
  1. systemctl --user enable python-cgi
  2. systemctl --user start python-cgi

#license

Licensed under the terms of the MIT license; see the LICENSE file.