Thread
:
Video Removal from News Feed to Kindle Paperwhite 2nd Generation
View Single Post
05-26-2014, 10:31 PM
#
5
kovidgoyal
creator of calibre
Posts: 45,433
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you are trying to remove tags that have the word video in their class attributes, you want
remove_tags = [
dict(name='div', attrs={'class':lambda x: x and 'video' in x.split())}),
]
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS