mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
nrc.nl by Darko Miletic
This commit is contained in:
parent
2c20e69d63
commit
7bafe49277
BIN
resources/images/news/nrc.nl.png
Normal file
BIN
resources/images/news/nrc.nl.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
50
resources/recipes/nrc.nl.recipe
Normal file
50
resources/recipes/nrc.nl.recipe
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
|
'''
|
||||||
|
nrc.nl
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class Pagina12(BasicNewsRecipe):
|
||||||
|
title = 'NRC'
|
||||||
|
__author__ = 'Darko Miletic'
|
||||||
|
description = 'News from Netherlands'
|
||||||
|
publisher = 'nrc.nl'
|
||||||
|
category = 'news, politics, Netherlands'
|
||||||
|
oldest_article = 2
|
||||||
|
max_articles_per_feed = 200
|
||||||
|
no_stylesheets = True
|
||||||
|
encoding = 'cp1252'
|
||||||
|
use_embedded_content = False
|
||||||
|
language = 'nl'
|
||||||
|
country = 'NL'
|
||||||
|
remove_empty_feeds = True
|
||||||
|
masthead_url = 'http://www.nrc.nl/nrc.nl/images/logo_nrc.png'
|
||||||
|
extra_css = ' body{font-family: Verdana,Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} h1,h2,h3{text-align:left} '
|
||||||
|
|
||||||
|
conversion_options = {
|
||||||
|
'comment' : description
|
||||||
|
, 'tags' : category
|
||||||
|
, 'publisher' : publisher
|
||||||
|
, 'language' : language
|
||||||
|
}
|
||||||
|
|
||||||
|
keep_only_tags = [dict(name='div',attrs={'class':'article clearfix'})]
|
||||||
|
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
(u'Voorpagina' , u'http://feeds.feedburner.com/NRCHandelsbladVoorpagina' )
|
||||||
|
,(u'Binnenland' , u'http://feeds.feedburner.com/NRCHandelsbladBinnenland' )
|
||||||
|
,(u'Buitenland' , u'http://feeds.feedburner.com/NRCHandelsbladBuitenland' )
|
||||||
|
,(u'Economie' , u'http://feeds.feedburner.com/NRCHandelsbladEconomie' )
|
||||||
|
,(u'Kunst & Film' , u'http://feeds.feedburner.com/nrc/NRCHandelsbladKunstEnFilm')
|
||||||
|
,(u'Sport' , u'http://feeds.feedburner.com/NRCHandelsbladSport' )
|
||||||
|
,(u'Wetenschap ' , u'http://www.nrc.nl/rss/wetenschap' )
|
||||||
|
]
|
||||||
|
|
||||||
|
def print_version(self, url):
|
||||||
|
return url + '?service=Print'
|
||||||
|
|
||||||
|
def preprocess_html(self, soup):
|
||||||
|
return self.adeify_images(soup)
|
Loading…
x
Reference in New Issue
Block a user