1# -*- coding: utf-8 -*- 2from calibre.web.feeds.news import BasicNewsRecipe 3 4 5class Konflikty(BasicNewsRecipe): 6 title = u'Konflikty Zbrojne' 7 __author__ = 'fenuks' 8 cover_url = 'http://konflikty.pl/wp-content/uploads/2014/07/konflikty.pl-logo.png' 9 language = 'pl' 10 description = u'Zbiór ciekawych artykułów historycznych, militarnych oraz recenzji książek, gier i filmów. Najświeższe informacje o lotnictwie, wojskach lądowych i polityce.' # noqa 11 category = 'military, history' 12 oldest_article = 7 13 max_articles_per_feed = 100 14 no_stylesheets = True 15 keep_only_tags = [ 16 dict(name='h1'), 17 dict(name='div', attrs={'id': 'page-content'})] 18 19 remove_tags = [dict(name='aside'), dict(name='p', attrs={'id': 'breadcrumbs'}), dict(name='div', attrs={'class': [ 20 'tags clearfix', 'post-tags clearfix', 'post-nav section-container clearfix', 'about-author section-container clearfix vcard', 'post-related section-container clearfix', ]}), dict(name='div', attrs={'id': 'disqus_thread'})] # noqa 21 22 feeds = [(u'Konflikty Zbrojne', u'http://www.konflikty.pl/feed')] 23 24 extra_css = ''' 25 h1 { font-size:130% } 26 ''' 27