Create a RSS feed from a collection?

Hello !

I want to create a RSS feed from a collection.
How do start with that in weweb ? (in python, I figured it out).

Thanks !

Hi @Zit :wave:

Just to make sure I understand, you’re not looking to create a collection from an RSS feed, right?

You already have a collection in WeWeb (for example from Xano or Supabase or another DB) and you want to create an RSS feed that is updated when there’s a new item in that collection. Is that correct?

Hello @Joyce !

Thanks for your feedback.

Yes, that’s it ! I want to to publish a rss feed from a collection.
I did it in Python, but I have to export my file, upload it in weweb as a file and make a link to the file.

I would like to generate a RSS file with my current data in weweb.

++

You could make a Python API with flask and for each collection, have the RSS feed somewhere, or make it on-demand. After that if you make a Landing Page that has …/collection_identifier/rss you should be able to hit the api and get the response right?

Yep, but lot of plugs to do for just an RSS.
I tried to generate this by javascript in a bind object, but not a great result right now.

I don’t know how RSS works honestly, but yeah, there is always options, you just have to pick. It’s not implemented directly into WeWeb, for now.

1 Like

Thanks @Broberto

For anyone else looking to do this it’s actually quite easy. It’s outside of WeWeb note.

  1. use cloudflare for the DNS for your weweb site
  2. create a cloudflare worker
  3. ask chatGPT to write the JS code for it. Mine queries a Supabase table for example.
  4. setup subdomain rss.example.com (proxied)
  5. setup worker to point to new route using subdomain