diff --git a/resources/images/news/fronda.png b/resources/images/news/fronda.png new file mode 100644 index 0000000000..c332bbda49 Binary files /dev/null and b/resources/images/news/fronda.png differ diff --git a/resources/images/news/gazeta_pomorska.png b/resources/images/news/gazeta_pomorska.png new file mode 100644 index 0000000000..1d7099d7f3 Binary files /dev/null and b/resources/images/news/gazeta_pomorska.png differ diff --git a/resources/images/news/legeartis.png b/resources/images/news/legeartis.png new file mode 100644 index 0000000000..fd9001d9ed Binary files /dev/null and b/resources/images/news/legeartis.png differ diff --git a/resources/images/news/michalkiewicz.png b/resources/images/news/michalkiewicz.png index a87f30f5a3..cfa61c7fd6 100644 Binary files a/resources/images/news/michalkiewicz.png and b/resources/images/news/michalkiewicz.png differ diff --git a/resources/images/news/rmf24_ESKN.png b/resources/images/news/rmf24_ESKN.png new file mode 100644 index 0000000000..53ad00078a Binary files /dev/null and b/resources/images/news/rmf24_ESKN.png differ diff --git a/resources/images/news/rmf24_fakty.png b/resources/images/news/rmf24_fakty.png new file mode 100644 index 0000000000..53ad00078a Binary files /dev/null and b/resources/images/news/rmf24_fakty.png differ diff --git a/resources/recipes/gazeta_pomorska.recipe b/resources/recipes/gazeta_pomorska.recipe new file mode 100644 index 0000000000..083f5cbeed --- /dev/null +++ b/resources/recipes/gazeta_pomorska.recipe @@ -0,0 +1,104 @@ +#!/usr/bin/env python + +# # Przed uzyciem przeczytaj komentarz w sekcji "feeds" + +__license__ = 'GPL v3' +__copyright__ = u'2010, Richard z forum.eksiazki.org' +'''pomorska.pl''' + +import re +from calibre.web.feeds.news import BasicNewsRecipe + +class GazetaPomorska(BasicNewsRecipe): + title = u'Gazeta Pomorska' + publisher = u'Gazeta Pomorska' + description = u'Kujawy i Pomorze - wiadomo\u015bci' + language = 'pl' + __author__ = u'Richard z forum.eksiazki.org' + # # (dziekuje t3d z forum.eksiazki.org za testy) + oldest_article = 2 + max_articles_per_feed = 20 + no_stylesheets = True + remove_javascript = True + preprocess_regexps = [ + (re.compile(r'' +''' +rmf24.pl +''' + +import re +from calibre.web.feeds.news import BasicNewsRecipe + +class RMF24_ESKN(BasicNewsRecipe): + title = u'Rmf24.pl - Ekonomia Sport Kultura Nauka' + description = u'Ekonomia, sport, kultura i nauka ze strony rmf24.pl' + language = 'pl' + oldest_article = 7 + max_articles_per_feed = 100 + __author__ = u'Tomasz D\u0142ugosz' + no_stylesheets = True + remove_javascript = True + + feeds = [(u'Ekonomia', u'http://www.rmf24.pl/ekonomia/feed'), + (u'Sport', u'http://www.rmf24.pl/sport/feed'), + (u'Kultura', u'http://www.rmf24.pl/kultura/feed'), + (u'Nauka', u'http://www.rmf24.pl/nauka/feed')] + + keep_only_tags = [dict(name='div', attrs={'class':'box articleSingle print'})] + + 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'})] + + extra_css = ''' + h1 { font-size: 1.2em; } + ''' + + preprocess_regexps = [ + (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">'), + (r'
', lambda match: 'REMOVE">'), + (r'