Debian Codegraph @

recipes/bbc_uk.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 Ukrainian'
9 description = 'BBC News \u0423\u043a\u0440\u0430\u0457\u043d\u0430'
10 __author__ = 'bugmen00t'
11 publication_type = 'newspaper'
12 oldest_article = 14
13 max_articles_per_feed = 50
14 language = 'uk'
15 cover_url = 'https://news.files.bbci.co.uk/ws/img/logos/og/ukrainian.png'
16 auto_cleanup = True
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\u0438\u043d\u0438 BBC', 'https://feeds.bbci.co.uk/ukrainian/rss.xml')]