mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
39 lines
1.9 KiB
Python
39 lines
1.9 KiB
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class IStories(BasicNewsRecipe):
|
|
title = u'\u0412\u0430\u0436\u043D\u044B\u0435 \u0438\u0441\u0442\u043E\u0440\u0438\u0438'
|
|
description = u'\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
|
|
__author__ = 'bugmen00t'
|
|
publisher = 'Roman Anin & Olesya Shmagun'
|
|
publication_type = 'blog'
|
|
oldest_article = 21
|
|
max_articles_per_feed = 50
|
|
language = 'ru'
|
|
cover_url = 'https://static.istories.media/public/cover.png'
|
|
auto_cleanup = False
|
|
no_stylesheets = True
|
|
|
|
remove_tags_before = dict(name='h1')
|
|
|
|
remove_tags_after = dict(name='article')
|
|
|
|
remove_tags = [
|
|
dict(name='header'),
|
|
dict(name='footer'),
|
|
dict(name='form', attrs={'class': 'subscr'}),
|
|
dict(name='div', attrs={'class': 'row'}),
|
|
dict(name='div', attrs={'class': 'arrow-black'}),
|
|
dict(name='div', attrs={'class': 'article-foot'}),
|
|
dict(name='div', attrs={'class': 'article-toggle'}),
|
|
dict(name='div', attrs={'class': 'article-soc'})
|
|
]
|
|
|
|
feeds = [(
|
|
u'\u0438\u0441\u0442\u043E\u0440\u0438\u0438',
|
|
'https://istories.media/rss/all.xml'
|
|
)]
|