Debian Codegraph @

recipes/7x7.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3
4 from __future__ import absolute_import, division, print_function, unicode_literals
5
6 from calibre.web.feeds.news import BasicNewsRecipe
7
8
9 class News(BasicNewsRecipe):
10 title = '7x7'
11 __author__ = 'bugmen00t'
12 description = '7x7 - межрегиональный интернет-журнал'
13 publisher = '7x7-journal.ru'
14 category = 'news'
15 cover_url = 'https://semnasem.org/site-specific/7x7-journal.ru/images/frontend/logo/logo-header.svg'
16 language = 'ru'
17 no_stylesheets = True
18 remove_javascript = True
19 auto_cleanup = False
20
21 oldest_article = 14
22 max_articles_per_feed = 30
23
24 feeds = [
25 ('7x7', 'https://semnasem.org/rss/default.xml'),
26 ]
27
28 remove_tags_before = dict(name='article', attrs={'class': 'article'})
29
30 remove_tags_after = dict(name='div', attrs={'class': 'article__footer-wrap'})
31
32 remove_tags = [dict(name='div', attrs={'class': 'article__footer-wrap'}), dict(name='div', attrs={'class': 'promolink-widget'})]