mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
|
'''
|
|
www.ria.ru
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class RIANovosti(BasicNewsRecipe):
|
|
title = 'RIA Novosti - Russian'
|
|
__author__ = 'Darko Miletic (with fixes by bugmen00t)'
|
|
description = 'News from Russia'
|
|
publisher = '\u041C\u0418\u0410 \u00AB\u0420\u043E\u0441\u0441\u0438\u044F \u0441\u0435\u0433\u043E\u0434\u043D\u044F\u00BB\u2028 (MIA Russia Today)'
|
|
category = 'news, politics, Russia'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
encoding = 'utf8'
|
|
language = 'ru'
|
|
publication_type = 'newsportal'
|
|
cover_url = 'https://oldimg.ria.ru/i/ria_social.png'
|
|
|
|
remove_tags_before = dict(name='div', attrs={'class': 'article__header'})
|
|
|
|
remove_tags_after = dict(name='div', attrs={'class': 'article__userbar'})
|
|
|
|
remove_tags = [
|
|
dict(name='div', attrs={'class': 'article__userbar'}),
|
|
dict(name='div', attrs={'class': 'article__title'}),
|
|
dict(name='div', attrs={'class': 'article__aggr'}),
|
|
dict(name='div', attrs={'class': 'article__article-info'})
|
|
]
|
|
|
|
feeds = [(
|
|
u'\u041B\u0435\u043D\u0442\u0430 \u043D\u043E\u0432\u043E\u0441\u0442\u0435\u0439',
|
|
u'https://ria.ru/export/rss2/archive/index.xml'
|
|
)]
|