From 988a6ffeceee41df8cff0bb16f7b8db0918d301e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sat, 6 Oct 2018 23:31:15 +0200 Subject: [PATCH] fix article parsing --- recipes/tablety_pl.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/tablety_pl.recipe b/recipes/tablety_pl.recipe index 36bf58a8ef..30b7475239 100644 --- a/recipes/tablety_pl.recipe +++ b/recipes/tablety_pl.recipe @@ -16,7 +16,7 @@ class Tablety_pl(BasicNewsRecipe): max_articles_per_feed = 100 preprocess_regexps = [(re.compile(u'

Przeczytaj także.*?

', re.DOTALL), lambda match: ''), (re.compile(u'

Przeczytaj koniecznie.*?

', re.DOTALL), lambda match: '')] - keep_only_tags = [dict(id='news_block')] + keep_only_tags = [dict(attrs={'class': ['featured-image', 'article-content clearfix']})] remove_tags = [dict(attrs={'class': ['comments_icon', 'wp-polls', 'entry-comments', 'wp-polls-loading', 'ts-fab-wrapper', 'entry-footer', 'social-custom']})] feeds = [(u'Najnowsze posty', u'http://www.tablety.pl/feed/')]