How to filter RSS Feed with a search keyword

269 views
Skip to first unread message

pankaj chopra

unread,
Feb 19, 2016, 11:20:02 AM2/19/16
to Google AJAX APIs
Hi All,

Below is my code syntax for RSS feed in my website


<!DOCTYPE html>
<html>
 
<head>
   
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
   
<script type="text/javascript">


    google
.load("feeds", "1");


   
function initialize() {
     
var feed = new google.feeds.Feed("http://feeds.bbci.co.uk/news/rss.xml");
      feed
.load(function(result) {
       
if (!result.error) {
         
var container = document.getElementById("feed");
         
for (var i = 0; i < result.feed.entries.length; i++) {
           
var entry = result.feed.entries[i];
           
var div = document.createElement("div");
            div
.appendChild(document.createTextNode(entry.title));
            container
.appendChild(div);
         
}
       
}
     
});
   
}
    google
.setOnLoadCallback(initialize);


   
</script>
 
</head>
 
<body>
   
<div id="feed"></div>
 
</body>
</html>


I want to filter my RSS Feed before fetching in URL. What is the way to do it?
Code example will be appreciated. I am in new in this API

Thomas Themel

unread,
Feb 19, 2016, 11:51:57 AM2/19/16
to google-ajax...@googlegroups.com
There is no way to do this in Feed API, you'll have to do it client side. 

ciao,
Thomas

--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/1cf4f819-cf81-4698-9b93-c8f3bc3354aa%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages