VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4] ]
Subject: Re: Combine Yahoo AND Google News onto page? Carp & Grouper


Author:
Antone
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 12:23:57 06/01/05 Wed
Author Host/IP: 67.169.250.63
In reply to: blogMan 's message, "Combine Yahoo AND Google News onto page? Carp & Grouper" on 06:07:33 05/19/05 Thu

The following is part of the response I sent to "blogMan" by email last month--I'm posting it here in case others might find it useful:

Next, how to get Yahoo! News. To do that, after the "include_once" line for Grouper, add this:

GrouperConf('source','yahoo');

Third, if you want to aggregate Google and Yahoo results together, here's how to do it (the paths in the following code would of course need to be adjusted to match your installation):

include_once "/path/to/grouper/grouper.php";
GrouperShow('your search terms','google_results.rss',0);
GrouperConf('source','yahoo');
GrouperShow('your search terms','yahoo_results.rss',0);

include_once "/path/to/carp/carp.php";
// do display formatting here, before calling CarpFilter
CarpFilter('/path/to/grouper/rsscache/google_results.rss','google');
CarpFilter('/path/to/grouper/rsscache/yahoo_results.rss','yahoo');
CarpAggregate('google|yahoo');

By the way, when you're using CaRP to display Grouper's output, since CaRP's input file will be stored on your server's hard drive, you can use the function CarpShow instead of CarpCacheShow, which just skips the step of caching CaRP's input (which would result in two copies of exactly the same file). Also, if you make a configuration change and you need to get rid of a cache file based on the old configuration, just add this line of code, which will cause the cache file to expire immediately:

CarpConf('cacheinterval',0);

or for Grouper's cache:

GrouperConf('cacheinterval',0);

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Re: Combine Yahoo AND Google News onto page? Carp & Groupermike05:12:26 12/21/05 Wed


[ Contact Forum Admin ]


Forum timezone: GMT-7
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.