calibre/recipes/media_zone.recipe
2024-03-30 13:03:29 +05:30

49 lines
2.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
from calibre.web.feeds.news import BasicNewsRecipe
class MediaZona(BasicNewsRecipe):
title = '\u041c\u0435\u0434\u0438\u0430\u0417\u043e\u043d\u0430'
__author__ = 'bugmen00t'
description = 'Общественно-политическое издание, сделавшее акцент на функционировании закона в России. По мнению авторитетных медиаэкспертов, по цитируемости и посещаемости формат «Медиазоны» оказался ведущим форматом новостного издания в России 2015 года. «Медиазона» пишет о реально происходящем в России, первой улавливая векторы развития общества.' # noqa
publisher = 'zona.media'
category = 'news'
cover_url = u'https://zona.media/s/share/default_mz.png'
language = 'ru'
no_stylesheets = False
remove_javascript = True
auto_cleanup = True
oldest_article = 30
max_articles_per_feed = 100
remove_tags_before = dict(
name='section', attrs={'class': 'mz-layout-content__row pt0 clearfix'}
)
remove_tags_after = dict(name='div', attrs={'class': 'mz-publish__wrapper'})
remove_tags = [
dict(name='div', attrs={'class': 'mz-agent-banner'}),
dict(name='section', attrs={'data-share-id': 'post'})
]
feeds = [
(
'\u041C\u0435\u0434\u0438\u0430\u0437\u043E\u043D\u0430 ',
'https://zona.media/rss'
),
(
'\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C',
'https://mediazona.by/rss'
),
(
'\u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0410\u0437\u0438\u044F',
'https://mediazona.ca/rss'
),
]