calibre/recipes/rian_eng.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

37 lines
1.1 KiB
Plaintext

__license__ = 'GPL v3'
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
'''
en.rian.ru
'''
from calibre.web.feeds.news import BasicNewsRecipe
class Ria_eng(BasicNewsRecipe):
title = 'Ria Novosti'
__author__ = 'Darko Miletic'
description = 'News from Russia in English'
language = 'en'
publisher = 'en.rian.ru'
category = 'news, politics, Russia'
oldest_article = 3
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
encoding = 'utf-8'
conversion_options = {
'comment': description, 'tags': category, 'publisher': publisher, 'language': language
}
keep_only_tags = [dict(name='div', attrs={'class': 'article'})]
remove_tags = [
dict(name=['object', 'link', 'iframe', 'base']), dict(name='div', attrs={'class': [
'related', 'mmban', 'view-story']}), dict(name='span', attrs={'class': 'copyright'})
]
remove_tags_after = dict(name='div', attrs={'class': 'text'})
feeds = [(u'Online news', u'http://en.rian.ru/export/rss2/archive/index.xml')]