Debian Codegraph @

recipes/colta.recipe

raw
1 # vim:fileencoding=UTF-8
2 from __future__ import unicode_literals
3
4 from calibre.web.feeds.news import BasicNewsRecipe
5
6
7 class Colta(BasicNewsRecipe):
8 language = 'ru'
9 __author__ = 'bug_me_not'
10 title = 'Colta.ru'
11 description = 'Всё о культуре и духе времени'
12 publisher = 'OpenSpace.ru'
13 category = 'news'
14 cover_url = 'http://www.colta.ru/assets/logo-afb684c3d35fc1f6f103f9fb638c8ec1.png'
15 no_stylesheets = True
16 remove_javascript = True
17
18 oldest_article = 21
19 max_articles_per_feed = 200
20
21 feeds = [('Colta.ru', 'http://www.colta.ru/feed')]
22
23 remove_tags_before = dict(name='section', attrs={'id': 'content'})
24 remove_tags_after = dict(name='div', attrs={'class': 'content'})
25 remove_tags = [
26 dict(name='div', attrs={'id': 'right'}),
27 dict(name='div', attrs={'class': 'soc_block'}),
28 dict(name='a', attrs={'class': 'help_site like_material'}),
29 dict(name='div', attrs={'class': 'share'}),
30 dict(name='div', attrs={'class': 'comments_head'}),
31 dict(name='div', attrs={'id': 'disqus_thread'}),
32 ]