| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class StopGame(BasicNewsRecipe): |
| 8 |
title = 'StopGame' |
| 9 |
__author__ = 'bugmen00t' |
| 10 |
description = ' \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043f\u043e\u0440\u0442\u0430\u043b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432 \u0430\u0432\u0442\u043e\u0440\u043e\u0432 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435\u043c \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u043c \u043e \u0432\u0438\u0434\u0435\u043e\u0438\u0433\u0440\u0430\u0445. ' # noqa: E501 |
| 11 |
publisher = 'StopGame.ru' |
| 12 |
category = 'blog' |
| 13 |
cover_url = 'https://images.stopgame.ru/blogs/2020/01/29/U7R7t5rQ.jpg' |
| 14 |
language = 'ru' |
| 15 |
no_stylesheets = False |
| 16 |
remove_javascript = False |
| 17 |
auto_cleanup = False |
| 18 |
oldest_article = 7 |
| 19 |
max_articles_per_feed = 50 |
| 20 |
|
| 21 |
remove_tags_before = dict(name='h1') |
| 22 |
|
| 23 |
remove_tags_after = dict(name='div', attrs={'class': '_end-info_zp673_1113'}) |
| 24 |
|
| 25 |
remove_tags = [ |
| 26 |
dict(name='section', attrs={'id': 'comments'}), |
| 27 |
dict(name='footer'), |
| 28 |
dict(name='section', attrs={'class': '_page-section_xdzdd_387 _additional-reads_zp673_1348'}), |
| 29 |
] |
| 30 |
|
| 31 |
feeds = [ |
| 32 |
('\u0412\u0441\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b', 'https://rss.stopgame.ru/rss_all.xml'), |
| 33 |
('\u041d\u043e\u0432\u043e\u0441\u0442\u0438', 'https://rss.stopgame.ru/rss_news.xml'), |
| 34 |
('\u0421\u0442\u0430\u0442\u044c\u0438', 'https://rss.stopgame.ru/articles.xml'), |
| 35 |
('\u0412\u0438\u0434\u0435\u043e', 'https://rss.stopgame.ru/videos.xml'), |
| 36 |
('\u0411\u043b\u043e\u0433\u0438', 'https://rss.stopgame.ru/all_topics.xml'), |
| 37 |
] |