Andrew Gwozdziewycz on 26 Nov 2007 20:13:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] RSS feed server

  • From: "Andrew Gwozdziewycz" <apgwoz@gmail.com>
  • To: skitch@skitchfamily.net, "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] RSS feed server
  • Date: Mon, 26 Nov 2007 15:12:49 -0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Q5DxhW0iG8HvW42SFuVwI0dXiZjgKgB5+N13f60xmaQ=; b=VM2A6b3kDBzFHi0017suFZbfgPOnF211Wt4JpTEB4QFHU/oaBAngxMvAqfhJM82EZO8Kd0axnOeG+2AhNtbEda+8sdYu7t8NtmfSp1mcXGVpVZIJbWtr54wcWU4JZMciRw8Qggojhf8use/wrqAu/rcOCbN6TUxOCoY5+AOcV0A=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

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