def fetch_feed_if_updated(url, date):
"""
Fetches an RSS feed if has been updated since a given date.
Args:
url: URL to the RSS feed
date: Date as time_struct.
Returns:
FeedParser object representing the feed if the feed has been
updated, None otherwise.
"""
feed = feedparser.parse(url)
if feed_updated(feed, date):
return feed
else:
return None
评论列表
文章目录