| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class RBCUA(BasicNewsRecipe): |
| 8 |
title = '\u0420\u0411\u041a-\u0423\u043a\u0440\u0430\u0438\u043d\u0430' |
| 9 |
__author__ = 'bugmen00t' |
| 10 |
description = '\u0423\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u043e\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u043e, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0435\u0435\u0441\u044f \u043d\u0430 \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445, \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u044f\u0445 \u0423\u043a\u0440\u0430\u0438\u043d\u044b.' # noqa: E501 |
| 11 |
publisher = '\u041e\u041e\u041e \u00ab\u042e\u0431\u0438\u0442\u0438 \u041c\u0435\u0434\u0438\u0430\u00bb' |
| 12 |
category = 'news' |
| 13 |
cover_url = 'https://www.rbc.ua/static/common/imgs/logo650.jpg' |
| 14 |
language = 'ru_UK' |
| 15 |
no_stylesheets = False |
| 16 |
remove_javascript = False |
| 17 |
auto_cleanup = False |
| 18 |
oldest_article = 3 |
| 19 |
max_articles_per_feed = 20 |
| 20 |
|
| 21 |
remove_tags_before = dict(name='article') |
| 22 |
|
| 23 |
remove_tags_after = dict(name='article') |
| 24 |
|
| 25 |
remove_tags = [ |
| 26 |
dict(name='span', attrs={'class': 'lang-publication'}), |
| 27 |
dict(name='div', attrs={'class': 'share'}), |
| 28 |
dict(name='ins'), |
| 29 |
dict(name='div', attrs={'class': 'read-in-google'}), |
| 30 |
dict(name='div', attrs={'class': 'intext-tags'}), |
| 31 |
] |
| 32 |
|
| 33 |
feeds = [('\u0420\u0411\u041a', 'https://www.rbc.ua/static/rss/all.rus.rss.xml')] |