From e7dd6770e7749d30408c213ac2c3e6283f13b91a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Thu, 13 Oct 2016 23:58:10 +0200 Subject: [PATCH] recipes: improve elektroda_pl --- recipes/elektroda_pl.recipe | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/elektroda_pl.recipe b/recipes/elektroda_pl.recipe index 6a27e9f15a..3c1c4f0f67 100644 --- a/recipes/elektroda_pl.recipe +++ b/recipes/elektroda_pl.recipe @@ -12,11 +12,12 @@ class Elektroda(BasicNewsRecipe): language = 'pl' max_articles_per_feed = 100 no_stylesheets = True - remove_tags_before = dict(name='span', attrs={'class': 'postbody'}) - remove_tags_after = dict(name='td', attrs={'class': 'spaceRow'}) - remove_tags = [dict(name='a', attrs={'href': '#top'})] feeds = [(u'Elektroda', u'http://www.elektroda.pl/rtvforum/rss.php')] + keep_only_tags = [dict(name='div', attrs={'class': 'title-wrap pull-left'}), + dict(name='ul', attrs={'class': 'topic-lists clearfix'}) + ] + def preprocess_html(self, soup): tag = soup.find('span', attrs={'class': 'postbody'}) if tag: