Debian Codegraph @

recipes/bbc_ru.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3
4 from calibre.web.feeds.news import BasicNewsRecipe
5
6
7 class BBC(BasicNewsRecipe):
8 title = 'BBC Russian'
9 description = '\u0420\u0443\u0441\u0441\u043a\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 BBC'
10 __author__ = 'bugmen00t'
11 publication_type = 'newspaper'
12 oldest_article = 14
13 max_articles_per_feed = 50
14 language = 'ru'
15 cover_url = 'https://news.files.bbci.co.uk/ws/img/logos/og/russian.png'
16 auto_cleanup = False
17 no_stylesheets = True
18
19 remove_tags_before = dict(name='h1')
20
21 remove_tags_after = dict(name='main', attrs={'aria-hidden': 'true'})
22
23 remove_tags = [dict(name='section', attrs={'role': 'region'}), dict(name='footer'), dict(name='aside')]
24
25 feeds = [('\u041d\u043e\u0432\u043e\u0441\u0442\u0438 BBC', 'https://feeds.bbci.co.uk/russian/rss.xml')]