←back to thread

148 points mustaphah | 2 comments | | HN request time: 0.464s | source
1. mg ◴[] No.45310784[source]
That is a good idea.

59 requirements, including Django, seems pretty heavy though?

For my own RSS feed, I use this 48 line Python file with no dependencies outside the standard library:

https://github.com/no-gravity/atomfeed.py

It takes an array with the entries as input, not a web page. But I guess the HTML parsing should take no more than another few lines? For HTML parsing, I have good experiences with the lxml module which is in the Debian repos. It is fast and works pretty well.

replies(1): >>45312638 #
2. oxalorg ◴[] No.45312638[source]
I recently added the python-feedgen module for creating feeds in my blog generator: https://github.com/oxalorg/genox/commit/3a73013ffe82930b1a7e...

I always love removing dependencies and simplifying software. I will try and switch to a simpler implementation like yours, thanks for sharing!