Debian Codegraph @

recipes/russiafeed.recipe

raw
1 # -*- mode: python -*-
2 # -*- coding: utf-8 -*-
3
4 __license__ = 'GPL v3'
5 __copyright__ = '2017, Darko Miletic <darko.miletic at gmail.com>'
6 '''
7 russiafeed.com
8 '''
9
10 from calibre.web.feeds.news import BasicNewsRecipe
11
12
13 class RussiaFeed(BasicNewsRecipe):
14 title = 'RussiaFeed News'
15 __author__ = 'Darko Miletic'
16 description = 'News from Russia'
17 publisher = 'The DRN Media PLC.'
18 category = 'news, politics, Russia, World'
19 oldest_article = 10
20 no_stylesheets = True
21 encoding = 'utf8'
22 use_embedded_content = False
23 language = 'en_RU'
24 remove_empty_feeds = True
25 publication_type = 'newsportal'
26 auto_cleanup = True
27 ignore_duplicate_articles = {'url'}
28 extra_css = '''
29 body{font-family: Roboto, Arial, sans-serif}
30 img{margin-top:1em; margin-bottom: 1em; display:block}
31 entry-title,entry-subtitle{font-family: Rajdhani, Poppins, Roboto, Arial, sans-serif}
32 '''
33
34 conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language}
35
36 remove_tags = [dict(name=['meta', 'link'])]
37
38 feeds = [('News', 'http://russiafeed.com/category/news/feed/')]