| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class IStories(BasicNewsRecipe): |
| 8 |
title = '\u0412\u0430\u0436\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438' |
| 9 |
description = '\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0438\u0437\u0434\u0430\u043d\u0438\u0435, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0435\u0435\u0441\u044f \u043d\u0430 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0441\u0442\u0441\u043a\u0438\u0445 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445. \u041e\u0441\u043d\u043e\u0432\u0430\u043d\u043e \u0432 2020 \u0433\u043e\u0434\u0443 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u043c\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0441\u0442\u0430\u043c\u0438 \u0420\u043e\u043c\u0430\u043d\u043e\u043c \u0410\u043d\u0438\u043d\u044b\u043c \u0438 \u041e\u043b\u0435\u0441\u0435\u0439 \u0428\u043c\u0430\u0433\u0443\u043d.' # noqa: E501 |
| 10 |
__author__ = 'bugmen00t' |
| 11 |
publisher = 'Roman Anin & Olesya Shmagun' |
| 12 |
publication_type = 'blog' |
| 13 |
oldest_article = 21 |
| 14 |
max_articles_per_feed = 50 |
| 15 |
language = 'ru' |
| 16 |
cover_url = 'https://static.istories.media/public/cover.png' |
| 17 |
auto_cleanup = False |
| 18 |
no_stylesheets = True |
| 19 |
|
| 20 |
remove_tags_before = dict(name='h1') |
| 21 |
|
| 22 |
remove_tags_after = dict(name='article') |
| 23 |
|
| 24 |
remove_tags = [ |
| 25 |
dict(name='header'), |
| 26 |
dict(name='footer'), |
| 27 |
dict(name='form', attrs={'class': 'subscr'}), |
| 28 |
dict(name='div', attrs={'class': 'row'}), |
| 29 |
dict(name='div', attrs={'class': 'arrow-black'}), |
| 30 |
dict(name='div', attrs={'class': 'article-foot'}), |
| 31 |
dict(name='div', attrs={'class': 'article-toggle'}), |
| 32 |
dict(name='div', attrs={'class': 'article-soc'}), |
| 33 |
] |
| 34 |
|
| 35 |
feeds = [('\u0438\u0441\u0442\u043e\u0440\u0438\u0438', 'https://istories.media/rss/all.xml')] |