Category Archives: Reddit

Turning Reddit RSS into a usable thing, or replacing reddit links with article links

Reddit is a great place to follow various news and updates – I’m using it to keep up to date with programming-related stuff, https://www.reddit.com/r/programming/

Although it could be read directly on the website (I guess), I prefer to do it via RSS aggregator (I use Feedly) – it makes it so much easier to track updates. So adding .rss to the Reddit URL, I get all I need in the aggregator (e.g. https://www.reddit.com/r/programming/.rss)

Well, more than I need, actually – it points me to the Reddit page with comments about the article, and those comments are the very last thing I want to see (if you tried to read them at least once, you’d understand; if not – just try; or trust me).

So doing extra navigation by clicking each article’s subject one more time after Reddit page loads, it finally got me – and I wrote a little proxy page that would replace Reddit comment page link with actual article link in the RSS feed XML.

It’s all here: https://bitbucket.org/hydralien/tools/src/f1196e83ebecca1c4e66c49b8f817e1609527cf6/reddit-streamline/?at=master

There’s a bunch of debug stuff there, and Godaddy-caused library loading nonsense, but the gist is simple – could also be tested at http://hydralien.net/py/direddit/r/programming/.rss