From fc439f3d826828269319ee12b8bc01d4cc195a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Tue, 9 Oct 2018 00:30:13 +0200 Subject: [PATCH] fix satkurier recipe --- recipes/satkurier.recipe | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/recipes/satkurier.recipe b/recipes/satkurier.recipe index dc4bca86cc..d67844c8cd 100644 --- a/recipes/satkurier.recipe +++ b/recipes/satkurier.recipe @@ -17,18 +17,11 @@ class SATKurier(BasicNewsRecipe): remove_javascript = True no_stylesheets = True - keep_only_tags = [] - keep_only_tags.append( - dict(name='div', attrs={'id': ['single_news', 'content']})) + keep_only_tags = [dict(name='div', attrs={'id': ['leftNewsContainer', 'content']})] - remove_tags = [] - remove_tags.append(dict(attrs={'id': ['news_info', 'comments']})) - remove_tags.append(dict(attrs={'href': '#czytaj'})) - remove_tags.append(dict(attrs={'align': 'center'})) - remove_tags.append(dict(attrs={'class': [ - 'date', 'category', 'right mini-add-comment', 'socialLinks', 'commentlist']})) + remove_tags = [dict(name='div', attrs={'class': ['col-xs-20', 'coverNews','btn-group']})] - remove_tags_after = [(dict(id='entry'))] + remove_tags_after = [dict(name='div',attrs={'class':'btn-group'})] feeds = [(u'Najnowsze wiadomoĊ›ci', u'http://feeds.feedburner.com/satkurierpl?format=xml'), (u'Sport w telewizji',