From fa8e78b0b3a734cbcac22eb9bf9e2fb4a7cb2916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Fri, 16 Oct 2015 17:15:25 +0200 Subject: [PATCH] remove most of the garbage tags --- recipes/lifehacker_pl.recipe | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/lifehacker_pl.recipe b/recipes/lifehacker_pl.recipe index daf9ab656a..1477bfc209 100644 --- a/recipes/lifehacker_pl.recipe +++ b/recipes/lifehacker_pl.recipe @@ -22,3 +22,7 @@ class lifehacking(BasicNewsRecipe): no_stylesheets=True feeds = [(u'Lifehacker polska', u'http://feeds.feedburner.com/pl_lh')] + + keep_only_tags = [ + dict(name='header', attrs={'class': 'td-post-title'}), + dict(name='div', attrs={'class': 'td-post-content'})]