urlwatch icon indicating copy to clipboard operation
urlwatch copied to clipboard

Add support for creating RSS/Atom feeds out of the changes list

Open dufferzafar opened this issue 8 years ago • 8 comments

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.

dufferzafar avatar Feb 20 '16 08:02 dufferzafar

I checked out the reporters.py file, I guess its not currently possible, but having it would be great :smile_cat:

dufferzafar avatar Feb 20 '16 08:02 dufferzafar

I need also RSS format.

nemysis avatar Feb 24 '16 13:02 nemysis

@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 avatar Sep 29 '16 17:09 dufferzafar

@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:

  1. Open an existing RSS file (filename configured in the configuration file)
  2. Read all existing entries
  3. Append new entries
  4. Possibly remove old entries
  5. 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.

thp avatar Sep 29 '16 21:09 thp

Exactly two years later I needed this feature again, Googled around to find this issue! :smile_cat:

dufferzafar avatar Feb 20 '18 10:02 dufferzafar

@dufferzafar See the instructions above on how it could be implemented :)

thp avatar Feb 21 '18 11:02 thp

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.

ghost avatar Mar 15 '18 19:03 ghost

I'd also love to see this feature in urlwatch!

makefu avatar May 18 '20 09:05 makefu