| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class Zerkalo(BasicNewsRecipe): |
| 8 |
title = '\u0417\u0435\u0440\u043a\u0430\u043b\u043e' |
| 9 |
description = '\u0417\u0435\u0440\u043a\u0430\u043b\u043e, \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0430\u0441\u0442\u0438 \u0431\u044b\u0432\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b TUT.BY.' # noqa: E501 |
| 10 |
__author__ = 'bugmen00t' |
| 11 |
publisher = '\u0417\u0435\u0440\u043a\u0430\u043b\u043e (zerkalo.io)' |
| 12 |
publication_type = 'news' |
| 13 |
oldest_article = 7 |
| 14 |
max_articles_per_feed = 100 |
| 15 |
language = 'ru_BE' |
| 16 |
cover_url = 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Zerkalo.io.png' |
| 17 |
auto_cleanup = False |
| 18 |
no_stylesheets = False |
| 19 |
|
| 20 |
remove_tags_before = dict(name='h1') |
| 21 |
|
| 22 |
remove_tags_after = dict(name='div', attrs={'id': 'article_body'}) |
| 23 |
|
| 24 |
remove_tags = [ |
| 25 |
dict(name='div', attrs={'class': 'b-addition m-single m-simplify'}), |
| 26 |
dict(name='div', attrs={'class': 'b-addition m-simplify'}), |
| 27 |
dict(name='iframe'), |
| 28 |
] |
| 29 |
|
| 30 |
feeds = [ |
| 31 |
# Original feeds |
| 32 |
# ('\u041D\u043E\u0432\u043E\u0441\u0442\u0438 \u0437\u0430 \u0434\u0435\u043D\u044C', 'https://news.zerkalo.io/rss/all.rss'), |
| 33 |
# ('\u041D\u043E\u0432\u043E\u0441\u0442\u0438 \u043D\u0435\u0434\u0435\u043B\u0438', 'https://news.zerkalo.io/rss/index.rss'), |
| 34 |
# Censorship bypass |
| 35 |
('\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c', 'https://br0wse-zerkalo.site/news/rss/all.rss'), |
| 36 |
('\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u043d\u0435\u0434\u0435\u043b\u0438', 'https://br0wse-zerkalo.site/news/rss/index.rss'), |
| 37 |
] |