Each feed item has an identifier, in item.id
. Track those, together with their .updated
(or .updated_parsed
) entry, to check for new items.
So, see if you already have seen the item (via item.id
) or if it has been updated since the last time you checked (via item.updated
or item.updated_parsed
).
Do make sure you take advantage of the feedparser E-Tag support to check for changed feed contents though. This will only save you from downloading feeds with no new items; you still need to detect items have been added or updated when you get a fresh new copy of the feed.