Add support for creating RSS/Atom feeds out of the changes list
I was wondering If I could get the differences of the webpage in RSS format. This would result in having a custom hosted alternative to sites like Feed43, Page2RSS etc.
I checked out the reporters.py file, I guess its not currently possible, but having it would be great :smile_cat:
I need also RSS format.
@thp I need this feature, and might go about implementing it, but can you please say something about how one might implement this in urlwatch. I'm new to the codebase and just some guidance on where to start and which file exactly to look into would be a great help!
@dufferzafar Have a look at https://github.com/thp/urlwatch/blob/master/lib/urlwatch/reporters.py -- probably WebServiceReporter or somesuch. Instead of the call to e.g. self.web_service_submit(service, 'Website Change Detected', body_text), you would:
- Open an existing RSS file (filename configured in the configuration file)
- Read all existing entries
- Append new entries
- Possibly remove old entries
- Write out the new RSS file
The default config is handled here: https://github.com/thp/urlwatch/blob/master/lib/urlwatch/storage.py#L45
Of course, an alternative would be to just load the urlwatch database, generate a list of changes from all entries for a given URL (by going step-by-step and doing a diff between each revision, and using each diff as RSS entry) and generate the RSS fresh on each run.
Exactly two years later I needed this feature again, Googled around to find this issue! :smile_cat:
@dufferzafar See the instructions above on how it could be implemented :)
I also need this feature, but I am not a programmer. I can offer to the person who develop this 5 cups of coffee in btc, a little contribution hehe.
I'd also love to see this feature in urlwatch!