diff --git a/recipes/rzeczpospolita.recipe b/recipes/rzeczpospolita.recipe index 05c7361bbb..4ab27d8437 100644 --- a/recipes/rzeczpospolita.recipe +++ b/recipes/rzeczpospolita.recipe @@ -1,12 +1,12 @@ from calibre.web.feeds.news import BasicNewsRecipe class RzeczpospolitaRecipe(BasicNewsRecipe): - __license__ = 'GPL v3' + __license__ = 'GPL v3' __author__ = u'kwetal and Tomasz Dlugosz' language = 'pl' version = 1 - title = u'Rzeczpospolita OnLine' + title = u'Rzeczpospolita OnLine' publisher = u'Presspublica Sp.' category = u'News' description = u'Newspaper' @@ -31,15 +31,19 @@ class RzeczpospolitaRecipe(BasicNewsRecipe): feeds.append(u'http://www.rp.pl/rss/8.html') keep_only_tags =[] - keep_only_tags.append(dict(name = 'div', attrs = {'id' : 'storyp'})) + keep_only_tags.append(dict(name = 'div', attrs = {'id' : 'story'})) remove_tags =[] - remove_tags.append(dict(name = 'div', attrs = {'id' : 'adk_0'})) + remove_tags.append(dict(name = 'div', attrs = {'id' : 'socialTools'})) + remove_tags.append(dict(name = 'div', attrs = {'class' : 'articleToolBoxTop'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'clr'})) - remove_tags.append(dict(name = 'div', attrs = {'id' : 'share_bottom'})) - remove_tags.append(dict(name = 'div', attrs = {'id' : 'copyright_law'})) + remove_tags.append(dict(name = 'div', attrs = {'id' : 'recommendations'})) + remove_tags.append(dict(name = 'div', attrs = {'id' : 'editorPicks'})) + remove_tags.append(dict(name = 'div', attrs = {'id' : 'articleCopyrightText'})) + remove_tags.append(dict(name = 'div', attrs = {'id' : 'articleCopyrightButton'})) + remove_tags.append(dict(name = 'div', attrs = {'class' : 'articleToolBoxBottom'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'more'})) - remove_tags.append(dict(name = 'div', attrs = {'class' : 'editorPicks'})) + remove_tags.append(dict(name = 'div', attrs = {'class' : 'addRecommendation'})) extra_css = ''' body {font-family: verdana, arial, helvetica, geneva, sans-serif ;} @@ -62,3 +66,4 @@ class RzeczpospolitaRecipe(BasicNewsRecipe): forget, sep, index = rest.rpartition(',') return start + '/' + index + '?print=tak' +