News for hackers. Stuff that matters.
Re:Now Is the Perfect Time for an RSS Renaissance by UncleEntity on Monday April 23, 2018 @10:19PM (#16909358)
It's funny, the only RSS feed I use I turn into json so I can store it tinydb in "native" format. Well, technically, I turn it into a python dict and then tinydb does the conversion to json automagically. Took 50 lines of code which I banged together from google searches.

Back before I started using the db backend I was parsing the feed with an auto-generated (from the schema) "rss reader" in python then merging the items into a master rss feed sorted by channels. That worked for a while until I got motivated and made it searchable/modifiable but couldn't find a simple database that I could just dump xml into.

Anyhoo, my point is it's easy to work with rss in either native xml or json with some simple tools that do most of the work for you. Would be super easy to bang together a converter that goes both ways if someone was motivated enough.

Actually... now that I think about it, changing generateDS to use a dict to store xml attributes could easily go back and forth with all the error checking one would desire -- might have to hack that together.

There are no comments on this comment yet.