Thread
:
"The New York Times" recipe fails
View Single Post
11-07-2018, 12:59 AM
#
23
kovidgoyal
creator of calibre
Posts: 45,918
Karma: 29228280
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
beautifulsoup supports arbitrary python functions for matching, or even regexps. Something lke:
Code:
remove_tags=[dict(attrs={'class':re.compile(r'pattern')})]
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS