Beispiel #1
0
    def on_after_parse(self, feed, data_dict):
        if data_dict.get('status') == 304:
            self.log.debug("Feed #%d: Not changed since last update ("
                "status 304 returned)" % feed.id)
            return True

        if not self.custom_storage:
            feed.http_etag = to_unicode(data_dict.get('etag'))
            feed.http_modified = struct_to_datetime(data_dict.get('modified'))