mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
34 lines
969 B
Plaintext
34 lines
969 B
Plaintext
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
|
|
'''
|
|
sp.rian.ru
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class Ria_esp(BasicNewsRecipe):
|
|
title = 'Ria Novosti'
|
|
__author__ = 'Darko Miletic'
|
|
description = 'Noticias desde Russia en Castellano'
|
|
language = 'es'
|
|
publisher = 'sp.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': ['mainnewsrubric', 'titleblock', 'mainnewstxt']})]
|
|
remove_tags = [dict(name=['object', 'link', 'iframe', 'base'])]
|
|
|
|
feeds = [
|
|
(u'Noticias', u'http://rss.feedsportal.com/c/860/fe.ed/sp.rian.ru/export/rss2/index.xml')]
|