mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
RussiaFeed by Darko Miletic
Fixes #1694749 [New recipe for RussiaFeed site](https://bugs.launchpad.net/calibre/+bug/1694749)
This commit is contained in:
parent
24cc2f661c
commit
e81a2588f1
BIN
recipes/icons/russiafeed.png
Normal file
BIN
recipes/icons/russiafeed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
40
recipes/russiafeed.recipe
Normal file
40
recipes/russiafeed.recipe
Normal file
@ -0,0 +1,40 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2017, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
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/')]
|
Loading…
x
Reference in New Issue
Block a user