mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-14 16:18:05 -04:00
65 lines
3.3 KiB
Python
65 lines
3.3 KiB
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class Wonderzine(BasicNewsRecipe):
|
|
title = 'Wonderzine'
|
|
__author__ = 'bugmen00t'
|
|
description = '\u041E\u043D\u043B\u0430\u0439\u043D-\u0438\u0437\u0434\u0430\u043D\u0438\u0435 \u0434\u043B\u044F \u0441\u043E\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0445 \u0436\u0435\u043D\u0449\u0438\u043D \u0438 \u0438\u0445 \u0434\u0440\u0443\u0437\u0435\u0439. \u041C\u044B \u043F\u0438\u0448\u0435\u043C \u043E \u043C\u043E\u0434\u0435 \u0438 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0435, \u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0442\u0435\u043D\u0434\u0435\u043D\u0446\u0438\u044F\u0445 \u0438 \u0440\u0430\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u044F\u0445, \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0438 \u0441\u0435\u043A\u0441\u0435, \u044D\u0442\u0438\u043A\u0435 \u0438 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044F\u0445, \u043E\u0441\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0445 \u0442\u0440\u0430\u0442\u0430\u0445 \u0438 \u0440\u0430\u0437\u043D\u043E\u043E\u0431\u0440\u0430\u0437\u0438\u0438 \u043A\u0440\u0430\u0441\u043E\u0442\u044B.' # noqa: E501
|
|
publisher = 'Redefine Media holding'
|
|
category = 'blog'
|
|
cover_url = u'https://lamcdn.net/wonderzine.com/post-og_image/WQRiRGqLlcKyEHsnOS-sUw.png'
|
|
language = 'ru'
|
|
no_stylesheets = False
|
|
remove_javascript = False
|
|
auto_cleanup = False
|
|
oldest_article = 14
|
|
max_articles_per_feed = 20
|
|
|
|
remove_tags_before = dict(name='h1')
|
|
|
|
remove_tags_after = dict(name='div', attrs={'class': 'is_article_end'})
|
|
|
|
remove_tags = [
|
|
dict(name='ul', attrs={'class': 'post-meta'}),
|
|
dict(name='a', attrs={'class': 'flow'}),
|
|
dict(name='a', attrs={'class': 'banner-ad-link'}),
|
|
dict(name='div', attrs={'class': 'share-buttons-bar'}),
|
|
dict(name='div', attrs={'class': 'pseudosidebar'})
|
|
]
|
|
|
|
feeds = [(
|
|
'\u0412\u0441\u0435 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B',
|
|
'https://www.wonderzine.com/feeds/posts.atom'
|
|
),
|
|
(
|
|
'\u041D\u043E\u0432\u043E\u0441\u0442\u0438',
|
|
'https://www.wonderzine.com/feeds/posts.atom?news=only'
|
|
),
|
|
(
|
|
'\u0416\u0438\u0437\u043D\u044C',
|
|
'https://www.wonderzine.com/feeds/posts.atom?topic=life'
|
|
),
|
|
(
|
|
'\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435',
|
|
'https://www.wonderzine.com/feeds/posts.atom?topic=health'
|
|
),
|
|
(
|
|
'\u041A\u0440\u0430\u0441\u043E\u0442\u0430',
|
|
'https://www.wonderzine.com/feeds/posts.atom?topic=beauty'
|
|
),
|
|
(
|
|
'\u0420\u0430\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u044F',
|
|
'https://www.wonderzine.com/feeds/posts.atom?topic=entertainment'
|
|
),
|
|
(
|
|
'\u0421\u0442\u0438\u043B\u044C',
|
|
'https://www.wonderzine.com/feeds/posts.atom?topic=style'
|
|
),
|
|
(
|
|
'\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0438',
|
|
'https://www.wonderzine.com/feeds/posts.atom?topic=opportunities'
|
|
)]
|