Debian Codegraph @

recipes/interfax.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 InterfaxUAEN(BasicNewsRecipe):
8 title = 'Interfax-Ukraine'
9 __author__ = 'bugmen00t'
10 description = 'The Interfax-Ukraine News Agency, founded in 1992, is subsidiary of Interfax Information Services.'
11 publisher = 'Interfax-Ukraine News Agency'
12 category = 'newspaper'
13 cover_url = 'https://interfax.com.ua/static/articles/images/interfax_ukraine_logo_eng.svg'
14 language = 'en_UK'
15 no_stylesheets = True
16 remove_javascript = False
17 auto_cleanup = False
18 oldest_article = 3
19 max_articles_per_feed = 30
20
21 remove_tags_before = dict(name='article', attrs={'class': 'article article-content-view'})
22
23 remove_tags_after = dict(name='article', attrs={'class': 'article article-content-view'})
24
25 remove_tags = [
26 dict(name='div', attrs={'class': 'grid article-content-secondary-header'}),
27 dict(name='div', attrs={'class': 'article-tags'}),
28 ]
29
30 feeds = [('Latest news', 'https://en.interfax.com.ua/news/last.rss')]