Show HN: Feed Creator 2.0 – Generate RSS feeds from web page elements
createfeed.fivefilters.org
createfeed.fivefilters.org
I've recently created something similar for personal use. I have many websites (mainly webshops) I want to be notified about changes on, but they don't have RSS feeds, subscriptions or APIs than you can use.
I set up a cron job that runs daily, scrapes websites according to some XPaths, and saves the results to a DB. If any new elements have appeared, an email will be sent out. The biggest challenge is handling false positives: being able to distinguish between a new element and e.g., a previously seen element with an updated title, description etc. For websites that directly expose what seems to be unique, server-side, identifiers in their HTML, using that as a primary key seem to work well. If that's not available, the href of the HTML element seem to be fairly static.
Do you have any thoughts on the issue of false positives and unique identifiers?
Generally though, I'm hoping users understand that feeds produced in this way could be a little more brittle than if the site offered its own feed.
One difference with your approach is that you have the data from previous fetches in your database. With Feed Creator everything related to producing the feed (source URL, selectors, filters, etc.) is embedded in the feed URL to avoid having to record data on the server. So each request is treated as if it's the first one - the server doesn't know if an item in the feed is new or old. If we referred to feed data from previous fetches, maybe we could let users introduce a delay before having a new item added to the feed. This might help in cases where a typo is spotted and corrected by the publisher minutes after publication. Can't think of a much better way of avoiding false positives at the moment though.
Here are two feeds we made earlier to give you an idea of what Feed Creator is supposed to do. The links below will pre-fill the form with the parameters you'd enter and produce a preview of the RSS:
* Chomsky.info articles: https://createfeed.fivefilters.org/index.php?url=https%3A%2F...
* Latest articles by John Pilger: https://createfeed.fivefilters.org/index.php?url=http%3A%2F%...
We sell the self-hosted version[1] and have a blog post with some instructions if you want to run it on a VPS[2].
[0] Zip file with PHP file inside: https://createfeed.fivefilters.org/fc_compatibility_test.zip
[1] https://www.fivefilters.org/pricing/
[2] https://blog.fivefilters.org/2020/06/04/feed-creator-2.html
In many cases, the client doesn’t care/know about content copyright and just crawling.
(P/s: I used to develop a blogging platform and find RSS links to seed content)