def new_entry_id(entry, cache={}):
 s = (entry['link'] + entry['title']).encode('ascii', 'ignore')
 return hashlib.md5(s).hexdigest()

def new_entry_id ( entry , cache = { } ) : s = ( entry [ 'link' ] + entry [ 'title' ] ) . encode ( 'ascii' , 'ignore' ) return hashlib . md5 ( s ) . hexdigest ( )
generate an entry id using the hash value of the title and link .