From 69a53b6638b1cfce4a3e299794505d89cb704622 Mon Sep 17 00:00:00 2001 From: bobbysteel Date: Wed, 5 Jul 2017 23:03:32 +0100 Subject: [PATCH] Cleaning further --- recipes/politico.recipe | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/recipes/politico.recipe b/recipes/politico.recipe index de54e419b0..106f3d0ef9 100644 --- a/recipes/politico.recipe +++ b/recipes/politico.recipe @@ -40,7 +40,19 @@ class Politico(BasicNewsRecipe): ] remove_tags = [ - dict(name=['notags', 'embed', 'object', 'link', 'img']), + dict(name=['notags', 'embed', 'aside', 'object', 'link', 'img', 'figure']), + dict( + attrs={'class': lambda x: x and 'story-tools' in x.split()}), + dict( + attrs={'class': lambda x: x and 'story-continued' in x.split()}), + dict( + attrs={'class': lambda x: x and 'story-supplement' in x.split()}), + dict( + attrs={'class': lambda x: x and 'story-share' in x.split()}), + dict( + attrs={'class': lambda x: x and 'suggested' in x.split()}), + dict( + attrs={'class': lambda x: x and 'summary' in x.split()}), ] extra_css = '''