mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class RBC_ru(BasicNewsRecipe):
|
|
title = u'RBC.ru'
|
|
__author__ = 'A. Chewi (with fixes by bugmen00t)'
|
|
description = 'Российское информационное агентство «РосБизнесКонсалтинг» (РБК) - ленты новостей политики, экономики и финансов, аналитические материалы, комментарии и прогнозы, тематические статьи' # noqa: E501
|
|
needs_subscription = False
|
|
cover_url = 'https://pics.rbc.ru/img/fp_v4/skin/img/logo.gif'
|
|
cover_margins = (80, 160, '#ffffff')
|
|
oldest_article = 20
|
|
max_articles_per_feed = 50
|
|
summary_length = 200
|
|
remove_empty_feeds = True
|
|
no_stylesheets = True
|
|
remove_javascript = True
|
|
use_embedded_content = False
|
|
conversion_options = {'linearize_tables': True}
|
|
auto_cleanup = True
|
|
language = 'ru'
|
|
timefmt = ' [%a, %d %b, %Y]'
|
|
|
|
feeds = [
|
|
(
|
|
u'RSS \u043D\u043E\u0432\u043E\u0441\u0442\u0438',
|
|
u'https://rssexport.rbc.ru/rbcnews/news/30/full.rss'
|
|
),
|
|
(
|
|
u'\u0413\u043B\u0430\u0432\u043D\u044B\u0435\u0020\u043D\u043E\u0432\u043E\u0441\u0442\u0438',
|
|
u'http://static.feed.rbc.ru/rbc/internal/rss.rbc.ru/rbc.ru/news.rss'
|
|
),
|
|
]
|