mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Pravda in english, ittalian and portuguese by DM. Fixes #1074106 (New set of recipes for Pravda)
This commit is contained in:
parent
d6c15c3b5c
commit
d711d273d9
BIN
recipes/icons/pravda_en.png
Normal file
BIN
recipes/icons/pravda_en.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 538 B |
BIN
recipes/icons/pravda_it.png
Normal file
BIN
recipes/icons/pravda_it.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 538 B |
BIN
recipes/icons/pravda_por.png
Normal file
BIN
recipes/icons/pravda_por.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 538 B |
BIN
recipes/icons/pravda_ru.png
Normal file
BIN
recipes/icons/pravda_ru.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 538 B |
53
recipes/pravda_en.recipe
Normal file
53
recipes/pravda_en.recipe
Normal file
@ -0,0 +1,53 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
english.pravda.ru
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Pravda_eng(BasicNewsRecipe):
|
||||
title = 'Pravda in English'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'News from Russia and rest of the world'
|
||||
publisher = 'PRAVDA.Ru'
|
||||
category = 'news, politics, Russia'
|
||||
oldest_article = 2
|
||||
max_articles_per_feed = 200
|
||||
no_stylesheets = True
|
||||
encoding = 'utf8'
|
||||
use_embedded_content = False
|
||||
language = 'en_RU'
|
||||
remove_empty_feeds = True
|
||||
publication_type = 'newspaper'
|
||||
masthead_url = 'http://english.pravda.ru/pix/logo.gif'
|
||||
extra_css = """
|
||||
body{font-family: Arial,sans-serif }
|
||||
img{margin-bottom: 0.4em; display:block}
|
||||
"""
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
, 'publisher' : publisher
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
remove_attributes=['lang', 'style']
|
||||
keep_only_tags = [dict(name='div', attrs={'id':'article'})]
|
||||
|
||||
|
||||
feeds = [
|
||||
(u'World' , u'http://english.pravda.ru/world/export-articles.xml' )
|
||||
,(u'Russia' , u'http://english.pravda.ru/russia/export-articles.xml' )
|
||||
,(u'Society' , u'http://english.pravda.ru/society/export-articles.xml' )
|
||||
,(u'Incidents', u'http://english.pravda.ru/hotspots/export-articles.xml' )
|
||||
,(u'Opinion' , u'http://english.pravda.ru/opinion/export-articles.xml' )
|
||||
,(u'Science' , u'http://english.pravda.ru/science/export-articles.xml' )
|
||||
,(u'Business' , u'http://english.pravda.ru/business/export-articles.xml' )
|
||||
,(u'Economics', u'http://english.pravda.ru/russia/economics/export-articles.xml')
|
||||
,(u'Politics' , u'http://english.pravda.ru/russia/politics/export-articles.xml' )
|
||||
]
|
||||
|
||||
def print_version(self, url):
|
||||
return url + '?mode=print'
|
52
recipes/pravda_it.recipe
Normal file
52
recipes/pravda_it.recipe
Normal file
@ -0,0 +1,52 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
italia.pravda.ru
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Pravda_ita(BasicNewsRecipe):
|
||||
title = 'Pravda in Italiano'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'News from Russia and rest of the world'
|
||||
publisher = 'PRAVDA.Ru'
|
||||
category = 'news, politics, Russia'
|
||||
oldest_article = 2
|
||||
max_articles_per_feed = 200
|
||||
no_stylesheets = True
|
||||
encoding = 'utf8'
|
||||
use_embedded_content = False
|
||||
language = 'it'
|
||||
remove_empty_feeds = True
|
||||
publication_type = 'newspaper'
|
||||
masthead_url = 'http://italia.pravda.ru/pix/logo.gif'
|
||||
extra_css = """
|
||||
body{font-family: Arial,sans-serif }
|
||||
img{margin-bottom: 0.4em; display:block}
|
||||
"""
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
, 'publisher' : publisher
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
remove_attributes=['lang', 'style']
|
||||
keep_only_tags = [dict(name='div', attrs={'id':'article'})]
|
||||
|
||||
|
||||
feeds = [
|
||||
(u'Dal mondo' , u'http://italia.pravda.ru/world/export-articles.xml' )
|
||||
,(u'Russia' , u'http://italia.pravda.ru/russia/export-articles.xml' )
|
||||
,(u'Societa' , u'http://italia.pravda.ru/society/export-articles.xml' )
|
||||
,(u'Avvenimenti', u'http://italia.pravda.ru/hotspots/export-articles.xml' )
|
||||
,(u'Opinioni' , u'http://italia.pravda.ru/opinion/export-articles.xml' )
|
||||
,(u'Scienza' , u'http://italia.pravda.ru/science/export-articles.xml' )
|
||||
,(u'Economia' , u'http://italia.pravda.ru/russia/economics/export-articles.xml')
|
||||
,(u'Politica' , u'http://italia.pravda.ru/russia/politics/export-articles.xml' )
|
||||
]
|
||||
|
||||
def print_version(self, url):
|
||||
return url + '?mode=print'
|
51
recipes/pravda_por.recipe
Normal file
51
recipes/pravda_por.recipe
Normal file
@ -0,0 +1,51 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
port.pravda.ru
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Pravda_port(BasicNewsRecipe):
|
||||
title = u'Pravda em português'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'News from Russia and rest of the world'
|
||||
publisher = 'PRAVDA.Ru'
|
||||
category = 'news, politics, Russia'
|
||||
oldest_article = 2
|
||||
max_articles_per_feed = 200
|
||||
no_stylesheets = True
|
||||
encoding = 'utf8'
|
||||
use_embedded_content = False
|
||||
language = 'pt'
|
||||
remove_empty_feeds = True
|
||||
publication_type = 'newspaper'
|
||||
masthead_url = 'http://port.pravda.ru/pix/logo.gif'
|
||||
extra_css = """
|
||||
body{font-family: Arial,sans-serif }
|
||||
img{margin-bottom: 0.4em; display:block}
|
||||
"""
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
, 'publisher' : publisher
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
remove_attributes=['lang', 'style']
|
||||
keep_only_tags = [dict(name='div', attrs={'id':'article'})]
|
||||
|
||||
|
||||
feeds = [
|
||||
(u'Mundo' , u'http://port.pravda.ru/mundo/export-articles.xml' )
|
||||
,(u'Russia' , u'http://port.pravda.ru/russa/export-articles.xml' )
|
||||
,(u'Sociedade' , u'http://port.pravda.ru/sociedade/export-articles.xml' )
|
||||
,(u'Cultura' , u'http://port.pravda.ru/sociedade/cultura/export-articles.xml')
|
||||
,(u'Ciencia' , u'http://port.pravda.ru/science/export-articles.xml' )
|
||||
,(u'Desporto' , u'http://port.pravda.ru/desporto/export-articles.xml' )
|
||||
,(u'CPLP' , u'http://port.pravda.ru/cplp/export-articles.xml' )
|
||||
]
|
||||
|
||||
def print_version(self, url):
|
||||
return url + '?mode=print'
|
50
recipes/pravda_ru.recipe
Normal file
50
recipes/pravda_ru.recipe
Normal file
@ -0,0 +1,50 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
www.pravda.ru
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Pravda_ru(BasicNewsRecipe):
|
||||
title = u'Правда'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = u'Правда.Ру: Аналитика и новости'
|
||||
publisher = 'PRAVDA.Ru'
|
||||
category = 'news, politics, Russia'
|
||||
oldest_article = 2
|
||||
max_articles_per_feed = 200
|
||||
no_stylesheets = True
|
||||
encoding = 'utf8'
|
||||
use_embedded_content = False
|
||||
language = 'ru'
|
||||
remove_empty_feeds = True
|
||||
publication_type = 'newspaper'
|
||||
masthead_url = 'http://www.pravda.ru/pix/logo.gif'
|
||||
extra_css = """
|
||||
body{font-family: Arial,sans-serif }
|
||||
img{margin-bottom: 0.4em; display:block}
|
||||
"""
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
, 'publisher' : publisher
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
remove_attributes=['lang', 'style']
|
||||
keep_only_tags = [dict(name='div', attrs={'id':'article'})]
|
||||
|
||||
feeds = [
|
||||
(u'Мир' , u'http://www.pravda.ru/world/export.xml' )
|
||||
,(u'Религия' , u'http://www.pravda.ru/faith/export.xml' )
|
||||
,(u'Общество' , u'http://www.pravda.ru/society/export.xml' )
|
||||
,(u'Происшествия', u'http://www.pravda.ru/accidents/export.xml')
|
||||
,(u'Наука' , u'http://www.pravda.ru/science/export.xml' )
|
||||
,(u'Экономика' , u'http://www.pravda.ru/economics/export.xml')
|
||||
,(u'Политика' , u'http://www.pravda.ru/politics/export.xml' )
|
||||
]
|
||||
|
||||
def print_version(self, url):
|
||||
return url + '?mode=print'
|
Loading…
x
Reference in New Issue
Block a user