utils.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:daisychain 作者: daisychainme 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号