code: def parseFeed(filename, yesterday):
      
      dom = xml.dom.minidom.parse(filename)
  
      getText = lambda node, tag: node.getElementsByTagName(tag)[0].childNodes[0].data
      getNode = lambda tag: dom.getElementsByTagName(tag)
  
      content = getNode('channel')[0] # Only one channel node
  
      feedTitle = getText(content, 'title')
      feedLink = getText(content, 'link')
      feedDesc = getText(content, 'description')
  
      feed = Feed(feedTitle, feedLink, feedDesc)
  
      for item in getNode('item'):
          itemDate = time.strptime(getText(item, 'pubDate'), '%a, %d %b %Y %H:%M:%S GMT')
          if (itemDate > yesterday): # If newer than yesterday
              feed.addItem(getText(item, 'title'),
                           getText(item, 'link'),
                           getText(item, 'description'),
                           getText(item, 'pubDate'))
      return feed
docs: Parse an RSS feed and filter only entries that are newer than yesterday.