| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class Sotavision(BasicNewsRecipe): |
| 8 |
title = 'SOTA.Vision' |
| 9 |
description = '\u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0435 \u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e-\u043f\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043c\u0435\u0434\u0438\u0430, \u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043d\u0430 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0438 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.' # noqa: E501 |
| 10 |
__author__ = 'bugmen00t' |
| 11 |
publisher = '\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u0430 \u0410\u0433\u0435\u0435\u0432\u0430, \u041e\u043b\u0435\u0433 \u0415\u043b\u0430\u043d\u0447\u0438\u043a, \u0415\u0432\u0433\u0435\u043d\u0438\u0439 \u0414\u043e\u043c\u043e\u0436\u0438\u0440\u043e\u0432' # noqa: E501 |
| 12 |
publication_type = 'news' |
| 13 |
oldest_article = 7 |
| 14 |
max_articles_per_feed = 10 |
| 15 |
language = 'ru' |
| 16 |
cover_url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/SotaVision.png/600px-SotaVision.png' |
| 17 |
auto_cleanup = False |
| 18 |
no_stylesheets = True |
| 19 |
|
| 20 |
remove_tags_before = dict(name='h1') |
| 21 |
|
| 22 |
remove_tags_after = dict(name='span', attrs={'style': 'border-color:#EBEBEB;border-width:1px;width:100%;'}) |
| 23 |
|
| 24 |
remove_tags = [ |
| 25 |
dict(name='div', attrs={'class': 'td_block_wrap tdb_mobile_menu tdi_7 td-pb-border-top td_block_template_1 tdb-header-align'}), |
| 26 |
dict(name='div', attrs={'class': 'td_block_wrap tdb_single_author tdi_52 td-pb-border-top td_block_template_1 tdb-post-meta'}), |
| 27 |
dict(name='div', attrs={'class': 'td_block_wrap tdb_single_date tdi_53 td-pb-border-top td_block_template_1 tdb-post-meta'}), |
| 28 |
dict(name='div', attrs={'class': 'td_block_wrap tdb_single_post_views tdi_54 td-pb-border-top td_block_template_1 tdb-post-meta'}), |
| 29 |
dict(name='div', attrs={'class': 'td_block_wrap tdb_single_post_share tdi_55 td-pb-border-top td_block_template_1'}), |
| 30 |
dict(name='div', attrs={'class': 'td-post-sharing-visible'}), |
| 31 |
] |
| 32 |
|
| 33 |
feeds = [ |
| 34 |
('\u0412\u0441\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b', 'https://sotavision.world/feed/'), |
| 35 |
('\u041d\u043e\u0432\u043e\u0441\u0442\u0438', 'https://sotavision.world/category/news/feed/'), |
| 36 |
('\u0418\u0441\u0442\u043e\u0440\u0438\u0438', 'https://sotavision.world/category/stories/feed/'), |
| 37 |
('\u0412\u0438\u0434\u0435\u043e', 'https://sotavision.world/category/videos/feed/'), |
| 38 |
('\u0424\u043e\u0442\u043e', 'https://sotavision.world/category/photos/feed/'), |
| 39 |
('\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0438', 'https://sotavision.world/category/projects/feed/'), |
| 40 |
('\u041c\u043d\u0435\u043d\u0438\u044f', 'https://sotavision.world/category/opinions/feed/'), |
| 41 |
] |