Andrew Gwozdziewycz on 26 Nov 2007 20:13:02 -0000 |
On Nov 26, 2007 2:57 PM, Marty Skitch <skitch@skitchfamily.net> wrote: > > Could you explain this in a little more detail. > > Andrew Gwozdziewycz wrote: > > I imagine all you really need is a cron job and a webserver. Pull down > with curl/wget all the feeds you want to read and rename them. Then > subscribe to them on your server. > Sure. If you aren't worried about keeping a history of all posts from this point on, a simple solution would be to download each feed and serve it from your own webserver. As an example, I have a feed on my photography blog Photub, which lives at http://feeds.feedburner.com/photub/latest-news, and I have a feed on my homepage at http://apgwoz.com/rss.xml. If I wanted to "cache" the current copy of each of these feeds for my personal use, a cron job and a webserver would be all thats needed. Your crontab could be as simple as: * 20 * * * /usr/bin/curl http://apgwoz.com/rss.xml > /webroot/apgwoz.xml * 20 * * * /usr/bin/curl http://feeds.feedburner.com/photub/latest-news > /webroot/photub.xml Then, you would retrieve these feeds from http://www.yourserver.com/apgwoz.xml and http://www.yourserver.com/photub.xml You'd still get all the benefits of RSS because RSS readers don't care about where the feed lives, or it's creation timestamp, just the contents of the feed itself. My django solution, involves a similar thing, but it adds each feed item to a database table and the list of feeds is also in the database. Feeds can be managed from the admin interface provided by django and they are assembled on each request for them. A cron job updates the feeds like before (but in one swoop, instead of a different job for each feed). Then, it's a matter of subscribing to each of the feeds that exist in the database. -- Andrew Gwozdziewycz apgwoz@gmail.com http://www.apgwoz.com | http://www.photub.com ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|