Thread
:
Recipes - Re-usable code
View Single Post
06-13-2012, 11:38 PM
#
23
kovidgoyal
creator of calibre
Posts: 43,853
Karma: 22666666
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
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS