Thread
:
"The New York Times" recipe fails
View Single Post
11-06-2018, 11:59 PM
#
23
kovidgoyal
creator of calibre
Posts: 45,462
Karma: 27757440
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