| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class Cherta(BasicNewsRecipe): |
| 8 |
title = '\u0427\u0435\u0440\u0442\u0430' |
| 9 |
__author__ = 'bugmen00t' |
| 10 |
description = ' \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435, \u0432\u0430\u0436\u043d\u044b\u0435 \u0438 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u043f\u0440\u043e \u043d\u0430\u0441\u0438\u043b\u0438\u0435 \u0438 \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.' # noqa: E501 |
| 11 |
publisher = 'cherta.media' |
| 12 |
category = 'blog' |
| 13 |
cover_url = 'https://cherta.media/wp-content/uploads/2022/01/cherta_snippet2.png' |
| 14 |
language = 'ru' |
| 15 |
no_stylesheets = False |
| 16 |
remove_javascript = False |
| 17 |
auto_cleanup = False |
| 18 |
oldest_article = 30 |
| 19 |
max_articles_per_feed = 30 |
| 20 |
|
| 21 |
remove_tags_before = dict(name='div', attrs={'class': 'single-story'}) |
| 22 |
|
| 23 |
remove_tags_after = dict(name='div', attrs={'class': 'single-page__footer-info'}) |
| 24 |
|
| 25 |
remove_tags = [ |
| 26 |
dict(name='div', attrs={'class': 'single-content-link'}), |
| 27 |
dict(name='div', attrs={'class': 'single-page__footer-info_links clearfix'}), |
| 28 |
dict(name='div', attrs={'class': 'single-article-tags-wrapper'}), |
| 29 |
] |
| 30 |
|
| 31 |
feeds = [ |
| 32 |
('\u0418\u0441\u0442\u043e\u0440\u0438\u0438', 'https://cherta.media/story/feed/'), |
| 33 |
('\u0418\u043d\u0442\u0435\u0440\u0432\u044c\u044e', 'https://cherta.media/interview/feed/'), |
| 34 |
] |