Debian Codegraph @

recipes/dziennikzwiazkowy.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class Informacje_USA(BasicNewsRecipe):
5 title = 'Dziennik Związkowy'
6 oldest_article = 7
7 max_articles_per_feed = 100
8 __author__ = 'fenuks & Tomasz Długosz'
9 description = 'Najstarsza polskojęzyczna gazeta codzienna w USA'
10 category = 'news'
11 language = 'pl'
12 cover_url = 'http://dziennikzwiazkowy.com/wp-content/uploads/2014/08/LogoDZPDN1.png'
13 no_stylesheets = True
14 use_embedded_content = False
15 keep_only_tags = [dict(name='div', attrs={'class': 'panel'})]
16 remove_tags = [
17 dict(name='div', attrs={'class': ['social-buttons left', 'video-carousel', 'p-title', 'article-foot', 'comments-block']}),
18 dict(attrs={'id': ['writecomment', 'blueimp-gallery']}),
19 ]
20 feeds = [('Informacje', 'http://dziennikzwiazkowy.com/feed/')]
21
22 extra_css = '''
23 h1 { font-size:130% }
24 '''