Re: [Magpierss-general] magpie vs delivious rss linkrolls - magpie giving inconsistent results (cac
Status: Beta
Brought to you by:
kellan
From: Russ J. <ru...@st...> - 2006-12-14 21:04:50
|
What I found - especially when reading a feed from Typepad - is that it may not be Magpie that is causing the inconsistency. What happened to my site is that the Typepad server was giving me a cached version of the feed sometimes. This had the result that the latest post would come and go as my site pulled the feed. I found that if I added the current date and time to the user-agent value that this problem went away. Why that worked I couldn't tell you, but I haven't seen the problem again in a year and a half. Russ www.zeptoworld.com On 12/14/06, Steve Lim <sup...@gm...> wrote: > > Hi all, > > As far as the concept goes, I thought that magpie did everything I ever > wanted. A way to parse rss (eg. delicious) feeds into styled php/html. > > However, after a couple of weeks of testing, I have noticed that for some > reason, magpie does not ALWAYS give reliable results. It seems to > cull/prune/trim the feed and return a shortened list(feed). Why is this? I > believe it is cache related as when I manually delete the cache. It seems to > work again (for a while). > > You can see what I mean by comparing my magpie list with the delicious rss > feed directly. You will see the feed is providing more items but somehow > magpie is trimming it. > > The link to both the raw feed and the final magpie parsed php/html is.. > > http://del.icio.us/rss/supersteve3d/modeling > http://www.stevelim.com/links/modeling_links.html > > Here is my php code.. > > <?php > > require_once "/var/www/html/files/magpierss/rss_fetch.inc"; > // change to reflect path of rss_fetch.inc > > $yummy = fetch_rss(" > http://del.icio.us/rss/supersteve3d/modeling"); > $maxitems = 50; > $yummyitems = array_slice($yummy->items, 0, $maxitems); > > foreach ($yummyitems as $yummyitem) { > print '<li>'; > print '<a href="'; > print $yummyitem['link']; > print '">'; > print $yummyitem['title']; > print '</a>'; > if (isset($yummyitem['description'])) { > > print ': '; > print $yummyitem['description']; > > } > print '</li>'; > print "\n"; > > } > > ?> > > I should also add that I have a few of these pages with the same code .. > $yummy = fetch_rss("http://del.icio.us/rss/supersteve3d/modeling"); > > except with the link changed. Could this be causing the problem? Do I need > unique variables for each page?? > > Thanks to anyone that can offer a hand. I have always found the delicious > linkrolls to be 100% reliable. The reason for my interest in the magpie > based solution is to have the links listed the html source (for search > engine purposes) as opposed to javascript only. > > Merry Christmas, > > Steve. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Magpierss-general mailing list > Mag...@li... > https://lists.sourceforge.net/lists/listinfo/magpierss-general > > > |