View Single Post
Old 06-13-2012, 11:38 PM   #23
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,673
Karma: 4998489
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@kiklop74: An easier way would be:

Code:
remove_tags = [
dict(attrs={'class':lambda x: x and 'Sample' in x.split()}),
]
kovidgoyal is online now   Reply With Quote