Hi everyone, I want to display the latest videos uploaded by several youtube channel. Each channel has its own rss feed so I’m wondering:
Is there a way to fetch rss feed and render them inside a tiddler (single file, local tiddlywiki)?
Is that possible with javascript/is there a plugin for that ?
will render an rss feed saved in a tiddler as type ‘text/xml’.
I am definitely not an expert on xml, but this template in a standard tiddler named ‘RFI’ worked for me in the past, up to a point. It does not fetch the feed. That’s another problem that somebody else might know how to solve;
The rss feed was copy pasted into another tiddler named ‘RFI - xml’ and saved as type text/xml.
The point it stopped working was when RFI stopped offering podcasts via rss, which seems to be common now. It did not download anything but rendered the title and link to an mp3 which was enough for me at the time.
You could try it with a manually saved and pasted youtube feed to see if it works as you want and then look at how to fetch the feed. The above template will not work for youtube but it might give you some clues. Finding the magic combo of xpath values was a real pain and every feed is different so - good luck.
It sounds like a nice project for TW, but a lot of work. RSS suits me but its future does seem in doubt, which is a pity. Does YT still offer it? If so, you could check if the file type is xml or atom or maybe some YT specific flavour before you get going. Maybe @Flibbles can confirm whether tw-xml5 will render all flavours of rss but I think it might be xml only.
Good luck, hope you get it going.
I made a simple RSS feed reader in tiddlywiki a while ago, I have no idea where it is, but the important part is that I wasn’t able to make it completely in-browser because not every feed has the CORS headers set up correctly so you can’t load them from inside a wiki.
That may be why some feeds just don’t work.
And I don’t think that RSS is dying, I think that google is trying to kill it but it is useful enough that everywhere outside of google people are still using it. And apparently even google is using it with youtube, so that is something.
One small but significant change to the landscape is that within the last couple of years GitHub enabled CORS by default for GitHub Pages, which is often used to host blogs. And of course it means that it would be possible for people to subscribe to feeds from tiddlywiki.com.
The author has shared the source code of his own proxy but yes it’s quite an involved process, I wish there was a simpler way, ideally not relying on a GAFAM/hosting a server…