| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class KyivPost(BasicNewsRecipe): |
| 8 |
title = 'Kyiv Post' |
| 9 |
__author__ = 'bugmen00t' |
| 10 |
description = '\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0430\u043d\u0433\u043b\u043e\u043c\u043e\u0432\u043d\u0430 \u0433\u0430\u0437\u0435\u0442\u0430, \u043d\u0430\u0433\u043e\u0440\u043e\u0434\u0436\u0435\u043d\u0430 \u0443 2014 \u0440\u043e\u043a\u0443. \u041f\u0435\u0440\u0448\u0438\u0439 \u0434\u0440\u0443\u043a\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0440\u0438\u043c\u0456\u0440\u043d\u0438\u043a \u0433\u0430\u0437\u0435\u0442\u0438 \u0432\u0438\u0439\u0448\u043e\u0432 18 \u0436\u043e\u0432\u0442\u043d\u044f 1995 \u0440\u043e\u043a\u0443, \u0430 \u0432 \u0406\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456 Kyiv Post \u0437\u2019\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432 1997 \u0440\u043e\u0446\u0456. \u0414\u0435\u0432\u0456\u0437 \u0433\u0430\u0437\u0435\u0442\u0438: \u00ab\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0438\u0439 \u0433\u043e\u043b\u043e\u0441 \u0423\u043a\u0440\u0430\u0457\u043d\u0438\u00bb, \u044f\u043a\u0438\u0439 \u0443 2018 \u0440\u043e\u0446\u0456 \u0437\u0430\u043c\u0456\u043d\u0438\u0432 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439 \u0434\u0435\u0432\u0456\u0437 \u00ab\u041d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u0456\u0441\u0442\u044c. \u0421\u043f\u0456\u043b\u044c\u043d\u043e\u0442\u0430. \u0414\u043e\u0432\u0456\u0440\u0430.\u00bb \u041e\u0431\u0438\u0434\u0432\u0430 \u0433\u0430\u0441\u043b\u0430 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u044c \u0442\u0435, \u0449\u043e \u0443 \u0432\u0438\u0434\u0430\u043d\u043d\u0456 \u0434\u043e\u0442\u0440\u0438\u043c\u0443\u044e\u0442\u044c\u0441\u044f \u043d\u0430\u0439\u0432\u0438\u0449\u0438\u0445 \u0436\u0443\u0440\u043d\u0430\u043b\u0456\u0441\u0442\u0441\u044c\u043a\u0438\u0445 \u0442\u0430 \u0435\u0442\u0438\u0447\u043d\u0438\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432.' # noqa: E501 |
| 11 |
publisher = 'BIZNESGRUPP TOV' |
| 12 |
category = 'newspaper' |
| 13 |
cover_url = 'https://www.kyivpost.com/wp-content/themes/kyivpost/assets/img/svg/logo-foot.svg' |
| 14 |
language = 'uk' |
| 15 |
no_stylesheets = False |
| 16 |
remove_javascript = True |
| 17 |
auto_cleanup = False |
| 18 |
oldest_article = 7 |
| 19 |
max_articles_per_feed = 20 |
| 20 |
|
| 21 |
remove_tags_before = dict(attrs={'class': 'single-article'}) |
| 22 |
|
| 23 |
remove_tags_after = dict(attrs={'class': 'post-author-block'}) |
| 24 |
|
| 25 |
remove_tags = [ |
| 26 |
dict(attrs={'class': 'post-label-and-topic'}), |
| 27 |
dict(attrs={'class': 'sidebar-start'}), |
| 28 |
dict(attrs={'class': 'correction'}), |
| 29 |
dict(attrs={'id': 'correction'}), |
| 30 |
dict(attrs={'class': 'ad_between_paragraphs'}), |
| 31 |
dict(attrs={'id': 'insert-post-by-topic'}), |
| 32 |
] |
| 33 |
|
| 34 |
feeds = [('\u041d\u043e\u0432\u0438\u043d\u0438', 'https://www.kyivpost.com/uk/feed')] |