def parse_entry(self, entry): """Parse a single feed entry into an IFTTT trigger item.""" # Not sure why, but sometimes we get http entry IDs. If we # don't have consistency between https/http, we get mutliple # unique UUIDs for the same entry. meta_id = url_to_uuid5(entry.id.replace('http:', 'https:')) date = entry.published_parsed created_at = utc_to_iso8601(date) ts = utc_to_epoch(date) return {'created_at': created_at, 'entry_id': meta_id, 'url': entry.id, 'meta': {'id': meta_id, 'timestamp': ts}}