How can I save a Superfeedr feed to a database?

57 views Asked by At

I want to subscribe to several RSS feeds at once, and save the contents to a database. I have a Superfeedr account, so I can subscribe to the feeds that way, but I've read the Superfeedr docs and I can't figure out how I then access the aggregated feed to do anything with it.

I have an Azure account with a PostgresQL database which I can use to save the information, but I'm not sure whether there's a 'best' way to do that - I'm happy to use PHP, C, JS or something else, but I don't really know where to actually put the code to make it work. Do I set up a cron job or some kind of timeout, or can I get Superfeedr to automatically send updates to a listener?

1

There are 1 answers

2
Julien Genestoux On

I created Superfeedr many years ago :) Superfeedr uses webhooks which means that once you have subscribed, you will receive notifications which include the content of the updated feeds on your HTTP server (you can ise PHP, JS or even C if you feel adventurous!) These notifications will be POST requests and you just have to parse the body.