3 ms·
A bit tangential, but something I really like about RSS feeds on blogs and the like is that they're relatively easy to parse, and as a result relatively easy to
by tombert 5y ago
A bit tangential, but something I really like about RSS feeds on blogs and the like is that they're relatively easy to parse, and as a result relatively easy to do programmatic stuff with them.
For example, when I had a blog a million years ago, I wanted to add a "search" engine to it (just a really dumb string comparison). It was pretty easy to do it client-side, in JavaScript, by reading the RSS feed generated by Jekyll and then just plopping the results on the screen.
Was it elegant? Nah, but it was easy and "good enough", and it would not have been nearly as easy if I hadn't had RSS.
- u2077 5y agoI’m interested in this idea, would be cool to have a library for custom on-site search. Just plug in the rss feeds to parse and then add the box to your website.
- tombert 5y agoYeah, I was pretty proud of myself for thinking of it (this was a long time ago when I was still kind of learning). I'm sure using a real "search engine" thing like Solr or something could give you even better results than a dumb "does string contain" thing that I did.