diff --git a/recipes/lwn_weekly.recipe b/recipes/lwn_weekly.recipe index 28ee35802a..2412449805 100644 --- a/recipes/lwn_weekly.recipe +++ b/recipes/lwn_weekly.recipe @@ -7,6 +7,7 @@ lwn.net ''' from calibre.web.feeds.news import BasicNewsRecipe +from calibre.ebooks.BeautifulSoup import BeautifulSoup import re class WeeklyLWN(BasicNewsRecipe): @@ -23,6 +24,11 @@ class WeeklyLWN(BasicNewsRecipe): remove_tags_after = dict(attrs={'class':'ArticleText'}) remove_tags = [dict(name=['h2', 'form'])] + preprocess_regexps = [ + # Remove the
and "Log in to post comments" + (re.compile(r'