| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class Rosbalt(BasicNewsRecipe): |
| 8 |
title = '\u0420\u043e\u0441\u0431\u0430\u043b\u0442' |
| 9 |
__author__ = 'bugmen00t' |
| 10 |
description = '\u0424\u0435\u0434\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e-\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u043e. \u041a\u0440\u0443\u0433\u043b\u043e\u0441\u0443\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u0435\u0434\u0438\u043c \u0437\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u0432 \u0441\u0442\u0440\u0430\u043d\u0435 \u0438 \u043c\u0438\u0440\u0435, \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u043c \u0441\u0430\u043c\u044b\u0435 \u0441\u0432\u0435\u0436\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0432\u0435\u0434\u0443\u0449\u0438\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u043e\u0432, \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u0441 \u0432\u0435\u0434\u0443\u0449\u0438\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044f\u043c\u0438 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438.' # noqa: E501 |
| 11 |
publisher = '\u0410\u041e \u00ab\u0420\u0421-\u0411\u0430\u043b\u0442\u00bb' |
| 12 |
category = 'newspaper' |
| 13 |
cover_url = 'https://i.ytimg.com/vi/eeMqJGbjuY0/maxresdefault.jpg' |
| 14 |
language = 'ru' |
| 15 |
no_stylesheets = False |
| 16 |
remove_javascript = False |
| 17 |
auto_cleanup = False |
| 18 |
oldest_article = 7 |
| 19 |
max_articles_per_feed = 100 |
| 20 |
|
| 21 |
remove_tags_before = dict(name='div', attrs={'class': 'main-content'}) |
| 22 |
|
| 23 |
remove_tags_after = dict(name='div', attrs={'class': 'newstext'}) |
| 24 |
|
| 25 |
remove_tags = [ |
| 26 |
dict(name='nav'), |
| 27 |
dict(name='aside'), |
| 28 |
dict(name='div', attrs={'class': 'news-left'}), |
| 29 |
dict(name='div', attrs={'class': 'rkngov'}), |
| 30 |
dict(name='div', attrs={'class': 'eye'}), |
| 31 |
] |
| 32 |
|
| 33 |
feeds = [('\u0420\u043e\u0441\u0431\u0430\u043b\u0442', 'https://www.rosbalt.ru/feed/')] |