def pre_process(self, entry):
        date_published = entry.get('published', entry.get('updated'))
        if not date_published:
            date_published = str(datetime.datetime.utcnow())
        date_published = dateutil.parser.parse(date_published)
        # Change the date to UTC and remove timezone info since MySQL doesn't
        # support it.
        utcoffset = date_published.utcoffset()
        if utcoffset:
            date_published = date_published - utcoffset 
        date_published = date_published.replace(tzinfo=None)
        
        entry['published'] = date_published
        
        if 'link' in entry:
            protocol_index = entry['link'].find("://")
            if protocol_index != -1:
                entry['link'] = entry['link'][:protocol_index+3] + iri_to_uri(entry['link'][protocol_index+3:])
            else:
                entry['link'] = iri_to_uri(entry['link'])
A hook is used to clean up feed entry data before it is processed.
dataset/ETHPy150Open IanLewis/django-lifestream/lifestream/plugins/__init__.py/FeedPlugin.pre_process