About Google Ajax Feed API's result.feed.entries.length

109 views
Skip to first unread message

ayrtbh

unread,
Oct 12, 2010, 6:26:14 AM10/12/10
to Google AJAX APIs
Hello,

my question 1 is:

var feed = new google.feeds.Feed("http://a_wordpress_blog/?
feed=rss2");
feed.setNumEntries(-1);// I want to fetch all the entries of the feed

and

var feed = new google.feeds.Feed("http://another_wordpress_blog/?
feed=rss2");
feed.setNumEntries(-1);

why these two blogs return different "result.feed.entries.length"?

is there a entries.length limitation in google ajax feed api? or it's
a setting in wordpress dashboard?

and question 2 is:

I can't fetch <img> content in some wordpress blog of its
entry.content, it seems that entry.content only shows the text
content...

sorry for my poor english and silly question...

Jeremy Geerdes

unread,
Oct 12, 2010, 6:55:40 AM10/12/10
to google-ajax...@googlegroups.com
Re: question 1: There are a number of reasons that the number of entries would differ between two different blogs. Probably most likely is that there is a different number of entries on them, but it could also be because Google crawled them first at different times and subsequently determined different cutoff points for the historical entries threshold. There is a limitation in the Feeds API that it won't return more than 250 results, but in order to get all 250, you have to call feed.includeHistoricalEntries();

Re: question 2: The content property of the entry should include everything that's in the description element of the entry on the feed. If that's not the case, you could get the feed in mixed format and check the entry's xmlNode for your img element using standard DOM methods.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

> --
> 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.
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
>

ayrtbh

unread,
Oct 12, 2010, 11:56:41 AM10/12/10
to Google AJAX APIs
Thanks Jeremy!

includeHistoricalEntries() really helps! though I can only get 100
entries at max, I think it's the cutoff problem now.
I'd better dig deeper in standard DOM methods to get the really blog
content, not just the description element.

thanks again for your kindly reply!

ayrtbh

On Oct 12, 6:55 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Re: question 1: There are a number of reasons that the number of entries would differ between two different blogs. Probably most likely is that there is a different number of entries on them, but it could also be because Google crawled them first at different times and subsequently determined different cutoff points for the historical entries threshold. There is a limitation in the Feeds API that it won't return more than 250 results, but in order to get all 250, you have to call feed.includeHistoricalEntries();
>
> Re: question 2: The content property of the entry should include everything that's in the description element of the entry on the feed. If that's not the case, you could get the feed in mixed format and check the entry's xmlNode for your img element using standard DOM methods.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.com
> jrgeer...@gmail.com

farha shaikh

unread,
Sep 17, 2014, 9:09:05 AM9/17/14
to google-ajax...@googlegroups.com
Hello Jeremy,

My feed contains about 284 entries as of now and it is growing. I am using Google Feed API but i can view only 250 entries.

please suggest how to view the remaining entries.

Its a bit urgent .

Thanks in advance!!
Farha

> To unsubscribe from this group, send email to google-ajax-search-api+unsub...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages