/well_feedit

A "prettifying Atom proxy" for reddits "RSS" feeds — for better reading

Primary LanguageClojure

well_feedit

An Atom 1.0 "prettifying proxy" for reddits "RSS" (it's really Atom) feed to make it more readable (primarily on Miniflux, but works for anything else as well) and actually uses the Atom standard to it's fullest.

What it does

well_feedit currently:

  • on each entry:
    • Extracts the real URL from the content element on each entry and updates the link element to that so that your feed reader can fetch the original content if it can and want.
    • Adds a link element with rel replies which goes to the reddit comments.
    • Then remove the content entry since it's just data duped from other elements.
  • If you visit it on a subdomain which starts with old., e.g. https://old.well-feedit.io/r/netsec/new.rss, it uses the old.reddit.com domain which still is better than the regular site on a computer but right now the regular site is better on mobile.

Usage

Run standalone

Until I've fixed the Github Action and upload the uberjar to a tag^Wrelease, you have do build it your self:

$ git clone https://github.com/simmel/well_feedit.git
$ cd well_feedit
$ lein uberjar
$ java -jar target/uberjar/*-standalone.jar
[...]
[main] INFO  se.soy.well_feedit.core - Server is up!
$ curl localhost:8080/r/netsec/new.rss
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>newest submissions : netsec</title>
  <link rel="alternate" type="text/html" href="https://www.reddit.com/r/netsec/new/" />
[...]

Run as a container

$ docker run --rm -it -p 8080:8080  well_feedit:latest
[...]
[main] INFO  se.soy.well_feedit.core - Server is up!
$ curl localhost:8080/r/netsec/new.rss
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>newest submissions : netsec</title>
  <link rel="alternate" type="text/html" href="https://www.reddit.com/r/netsec/new/" />
[...]

TODO