Using Google API AJAX Feed to search in restricted list of RSS

120 views
Skip to first unread message

Diogo Borges Krobath

unread,
Jul 22, 2009, 10:20:54 PM7/22/09
to Google AJAX APIs
Hi,

I'm testing this API in the follow example:

http://code.google.com/apis/ajax/playground/#find_feed

Which I only can seach in a specific website feed (for example
cnn.com ) or seach in all web feeds (if I dont specify the site url
where I want to search)

I want to indicate a specific list of links of feeds (In this case,
instead using the url of a site I'd like to use directly url of a RSS
file) and search inside this restricted list indicated using this
API .

Is that possible using this API ?

thanks

Jeff S (Google)

unread,
Jul 23, 2009, 10:18:29 PM7/23/09
to Google-AJAX...@googlegroups.com
Hi Diogo,

If you already know the URLs of the feeds that you want to pull in, you can use the FeedControl's addFeed method for each of the URLs you have. Example here:

http://code.google.com/apis/ajax/playground/#feed_control

To fetch just a single feed you can instantiate a Feed object using the URL and call it's load method. There's a simple example here:

http://code.google.com/apis/ajax/playground/#load_feed

Thank you,

Jeff

Diogo Borges Krobath

unread,
Jul 26, 2009, 4:48:20 AM7/26/09
to Google-AJAX...@googlegroups.com, André Duque, Eron Ferreira de Castro Júnior, Vinicius Oyama
Hi Jeff

Thanks for your answer.

I saw how to add feeds using the FeedControl and draw a box with the last updates of these feed.

But what I want to know is how to use the method findFeeds or any similar

for instance, in this function:

function OnLoad() {
  // Query for president feeds on cnn.com
  var query = 'site:cnn.com president';
  google.feeds.findFeeds(query, findDone);
}


in this context:

http://code.google.com/apis/ajax/playground/#find_feed

in a object like FeedControl (where I added the list of Feeds that I want to search in) and indicating the words I'd like to search for

Any suggestion ?

thanks


Diogo Borges Krobath

Engenharia de Computação
Escola Politécnica da USP

Diogo Borges Krobath

unread,
Jul 29, 2009, 7:56:06 PM7/29/09
to Google-AJAX...@googlegroups.com, André Duque, Eron Ferreira de Castro Júnior, Vinicius Oyama
Hi

I'd just like to know if is possible to do what I want using the Google Ajax API for Feeds or I have to do without it.


thanks



Diogo Borges Krobath

Engenharia de Computação
Escola Politécnica da USP


2009/7/26 Diogo Borges Krobath <dbkr...@gmail.com>

Ben

unread,
Apr 9, 2012, 4:52:47 PM4/9/12
to google-ajax...@googlegroups.com, Google AJAX APIs
I, too, would like to know if it is possible to restrict the results that the Find Feed (findFeeds()) method returns to a list of specific "known" or "trusted" domains.

Jeff S., while appreciated, your answer didn't address the question. We realize that it is possible to pull content from specific feeds, but we don't want all of the content from those feeds; we want to use a search query.

To reiterate, we want to know whether or not it's possible to use the Find Feed method to search for feed entries while at the same time restricting the result set to a given list of domains.

For example, with Google Web Search, this is done in the following manner (if I am not positive about the syntax, although this seems to work as expected):

site:www.ascls.org OR site:www.clma.org OR site:clpmag.com calibration

The Find Feed documentation actually uses this same technique in the demo that you cited, but, it uses a single domain only. As soon as I try to add multiple site: clauses, or even use the OR keyword, zero results are returned, when I know that there should be more.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages