From e81a2588f11bfb1da9ec3d088bddf686633a1306 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 1 Jun 2017 00:15:05 +0530 Subject: [PATCH] RussiaFeed by Darko Miletic Fixes #1694749 [New recipe for RussiaFeed site](https://bugs.launchpad.net/calibre/+bug/1694749) --- recipes/icons/russiafeed.png | Bin 0 -> 1327 bytes recipes/russiafeed.recipe | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes/icons/russiafeed.png create mode 100644 recipes/russiafeed.recipe diff --git a/recipes/icons/russiafeed.png b/recipes/icons/russiafeed.png new file mode 100644 index 0000000000000000000000000000000000000000..613c954157bd5568f7be4048fb6058ebe26205ac GIT binary patch literal 1327 zcmdr~K}b|#5FRsSHMW8Z)*=!j3_^IjqXv5kbr)TTO>_(EROAj6NTM5JR77|wt3%LX zqH8C?E_I0xb_^y6qLYU6E3XU!&pSBq9*Dg7c7u86*Do1dXPe`xQd%N;NYShC;9g z7)YZNw7>&{femPn6-71Dh;bYngOSjOv53q)7MQL-Sfm?`eWptaQmOB;-qgzAn7R|& zP6Y?$R6{I3r4fPTOrmsw0l7&Ave4KtefQHFRX|R@ibpOHY>}rx}J-qRyqtNzjv+dW9)5A-9H{MTn z_w)=GzK(p}zSwtYX?6(fJqa bo8L|}+n1NS=5H2q?=XWZ' +''' +russiafeed.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + + +class RussiaFeed(BasicNewsRecipe): + title = 'RussiaFeed News' + __author__ = 'Darko Miletic' + description = 'News from Russia' + publisher = 'The DRN Media PLC.' + category = 'news, politics, Russia, World' + oldest_article = 10 + no_stylesheets = True + encoding = 'utf8' + use_embedded_content = False + language = 'en_RU' + remove_empty_feeds = True + publication_type = 'newsportal' + auto_cleanup = True + ignore_duplicate_articles = {'url'} + extra_css = """ + body{font-family: Roboto, Arial, sans-serif} + img{margin-top:1em; margin-bottom: 1em; display:block} + entry-title,entry-subtitle{font-family: Rajdhani, Poppins, Roboto, Arial, sans-serif} + """ + + conversion_options = { + 'comment': description, 'tags': category, 'publisher': publisher, 'language': language + } + + remove_tags = [dict(name=['meta', 'link'])] + + feeds = [(u'News', u'http://russiafeed.com/category/news/feed/')]