calibre/recipes/breaking_mad.recipe
2017-11-19 15:45:03 +05:30

40 lines
1.6 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1467715002(BasicNewsRecipe):
title = 'Breaking Mad'
__author__ = 'bugmen00t'
description = 'Breaking Mad - пока смерть не насмешит нас. Breakingmad - это агрегатор самых странных и драматичных новостей с жизнеутверждающим эффектом. Breakingmad - это все, что вы должны знать о России и не только.' # noqa
publisher = 'BreakingMad'
category = 'news'
cover_url = u'http://breakingmad.me/images/logo.png'
language = 'ru'
no_stylesheets = False
remove_javascript = True
auto_cleanup = False
oldest_article = 100
max_articles_per_feed = 50
feeds = [
('Общий канал', 'http://breakingmad.me/ru/rss'),
('Страшное', 'http://breakingmad.me/ru/terrible/rss'),
('Смешное', 'http://breakingmad.me/ru/comedy/rss'),
('Странное', 'http://breakingmad.me/ru/weird/rss'),
('Популярное', 'http://breakingmad.me/ru/popular/rss'),
]
remove_tags_before = dict(name='div', attrs={'class': 'news-row'})
remove_tags_after = dict(name='div', attrs={'class': 'news-bottom'})
remove_tags = [
dict(name='div', attrs={
'class': 'news-bottom-center'
}),
dict(name='span', attrs={
'class': 'ico-link news-bottom-link'
})
]