| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
from __future__ import absolute_import, division, print_function, unicode_literals |
| 4 |
|
| 5 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 6 |
|
| 7 |
|
| 8 |
class AdvancedUserRecipe1467715002(BasicNewsRecipe): |
| 9 |
title = 'Breaking Mad' |
| 10 |
__author__ = 'bugmen00t' |
| 11 |
description = 'Breaking Mad - пока смерть не насмешит нас. Breakingmad - это агрегатор самых странных и драматичных новостей с жизнеутверждающим эффектом. Breakingmad - это все, что вы должны знать о России и не только.' # noqa: E501 |
| 12 |
publisher = 'BreakingMad' |
| 13 |
category = 'news' |
| 14 |
cover_url = 'http://breakingmad.me/images/logo.png' |
| 15 |
language = 'ru' |
| 16 |
no_stylesheets = False |
| 17 |
remove_javascript = True |
| 18 |
auto_cleanup = False |
| 19 |
|
| 20 |
oldest_article = 100 |
| 21 |
max_articles_per_feed = 50 |
| 22 |
|
| 23 |
feeds = [ |
| 24 |
('Общий канал', 'http://breakingmad.me/ru/rss'), |
| 25 |
('Страшное', 'http://breakingmad.me/ru/terrible/rss'), |
| 26 |
('Смешное', 'http://breakingmad.me/ru/comedy/rss'), |
| 27 |
('Странное', 'http://breakingmad.me/ru/weird/rss'), |
| 28 |
('Популярное', 'http://breakingmad.me/ru/popular/rss'), |
| 29 |
] |
| 30 |
|
| 31 |
remove_tags_before = dict(name='div', attrs={'class': 'news-row'}) |
| 32 |
remove_tags_after = dict(name='div', attrs={'class': 'news-bottom'}) |
| 33 |
remove_tags = [dict(name='div', attrs={'class': 'news-bottom-center'}), dict(name='span', attrs={'class': 'ico-link news-bottom-link'})] |