Debian Codegraph @

recipes/rt.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3 from calibre.web.feeds.news import BasicNewsRecipe
4
5
6 class RtRecipe(BasicNewsRecipe):
7 title = 'RT на русском'
8 __author__ = 'Vuizur'
9 oldest_article = 7
10 max_articles_per_feed = 100
11 auto_cleanup = False
12 language = 'ru'
13
14 remove_tags_before = dict(name='h1')
15 remove_tags_after = dict(name='a', attrs={'class': 'tags-trends__link'})
16 remove_tags = [
17 dict(name='div', attrs={'class': 'error-on-page'}),
18 dict(name='div', attrs={'class': 'short-url'}),
19 dict(name='div', attrs={'class': 'follows-channel'}),
20 dict(name='a', attrs={'class': 'tags-trends__link'}),
21 ]
22
23 feeds = [
24 ('RT на русском', 'https://russian.rt.com/rss'),
25 ]