homepage Welcome to WebmasterWorld Guest from 54.242.126.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
Retrieving the new entries of an updated feed
Rama

5+ Year Member



 
Msg#: 3767778 posted 11:12 am on Oct 17, 2008 (gmt 0)

At 9:00 AM
Feed entries are
X
Y

At 9:10 AM
Feed entries are
a
b
c
X
Y

newly added entries are a,b,c

i read the feed at 9:00am and noted down the entries X,Y
after 10 minutes again i read the feed
using Etag (or) id method i detected that the feed has changed....................

now how to retrieve ( in php/java) those newly added entries of a feed at 9:10 Am?
------------------------------------------------------------------------------------------------------------
i thought of following the below approach

at 9:00 Am notedown the id of latest entry...............................

at 9:10 Am (it is modified) read the feed entries until you get the entry who id is equal to the entry which we stored at 9:00Am. These entries which we read here are newly added ones...............

is this the right approach to get the newly added entries of a feed?
(or) is there any efficient approach ?

--rama

 

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3767778 posted 2:06 am on Oct 18, 2008 (gmt 0)

Welcome to WebmasterWorld Rama.

I'm not exactly sure what you're getting at, but it seems you're looking at feed updating times. Keep in mind that there are a number of factors involved. Your local ISP could be caching data, or even your local browser.

Rama

5+ Year Member



 
Msg#: 3767778 posted 7:27 am on Oct 18, 2008 (gmt 0)

thanks bill i have resolve this issue.
i am detecting the new entries by means of published date in the ATOM feed.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved