| 1 |
# -*- coding: utf-8 -*- |
| 2 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 3 |
|
| 4 |
|
| 5 |
class Konflikty(BasicNewsRecipe): |
| 6 |
title = '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 = '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: E501 |
| 11 |
category = 'military, history' |
| 12 |
oldest_article = 7 |
| 13 |
max_articles_per_feed = 100 |
| 14 |
no_stylesheets = True |
| 15 |
keep_only_tags = [dict(name='h1'), dict(name='div', attrs={'id': 'page-content'})] |
| 16 |
|
| 17 |
remove_tags = [ |
| 18 |
dict(name='aside'), |
| 19 |
dict(name='p', attrs={'id': 'breadcrumbs'}), |
| 20 |
dict( |
| 21 |
name='div', |
| 22 |
attrs={ |
| 23 |
'class': [ |
| 24 |
'tags clearfix', |
| 25 |
'post-tags clearfix', |
| 26 |
'post-nav section-container clearfix', |
| 27 |
'about-author section-container clearfix vcard', |
| 28 |
'post-related section-container clearfix', |
| 29 |
] |
| 30 |
}, |
| 31 |
), |
| 32 |
dict(name='div', attrs={'id': 'disqus_thread'}), |
| 33 |
] # noqa: E501 |
| 34 |
|
| 35 |
feeds = [('Konflikty Zbrojne', 'http://www.konflikty.pl/feed')] |
| 36 |
|
| 37 |
extra_css = ''' |
| 38 |
h1 { font-size:130% } |
| 39 |
''' |