From e1c18fdc359ba916c51d4c8a7fd38dd5c80d46dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sat, 13 Oct 2018 22:40:36 +0200 Subject: [PATCH] fix rmf24 recipes --- recipes/rmf24_ESKN.recipe | 11 ++++------- recipes/rmf24_fakty.recipe | 12 ++++-------- recipes/rmf24_opinie.recipe | 13 ++++--------- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/recipes/rmf24_ESKN.recipe b/recipes/rmf24_ESKN.recipe index ace2cf84c8..281f3a4c65 100644 --- a/recipes/rmf24_ESKN.recipe +++ b/recipes/rmf24_ESKN.recipe @@ -26,13 +26,11 @@ class RMF24_ESKN(BasicNewsRecipe): (u'Nauka', u'http://www.rmf24.pl/nauka/feed')] keep_only_tags = [ - dict(name='div', attrs={'class': 'box articleSingle print'})] + dict(name='header', attrs={'class': 'article-header'}), + dict(name='div', attrs={'class': 'article-container'})] - remove_tags = [ - dict(name='div', attrs={'class': 'toTop'}), - dict(name='div', attrs={'class': 'category'}), - dict(name='div', attrs={'class': 'REMOVE'}), - dict(name='div', attrs={'class': 'embed embedAd'})] + remove_tags = [dict(name='div', attrs={'id': 'ReklamaMobile'}), + dict(name='img', attrs={'class': 'img-responsive hidden-lg hidden-md hidden-sm'})] extra_css = ''' h1 { font-size: 1.2em; } @@ -42,7 +40,6 @@ class RMF24_ESKN(BasicNewsRecipe): (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in [ (r'

Zdj.cie

', lambda match: ''), - (r'embed embed(Left|Right|Center) articleEmbed(Audio|Wideo articleEmbedVideo|ArticleFull|ArticleTitle|ArticleListTitle|AlbumHorizontal)">', lambda match: 'REMOVE">'), # noqa (r'', lambda match: 'REMOVE">'), # noqa (r'