nos.nl by erkfuizfeuadjfjzefzfuzeff

This commit is contained in:
Kovid Goyal 2017-02-19 07:52:23 +05:30
parent 860ee4203e
commit 54f312496a

43
recipes/nos_nl.recipe Normal file
View File

@ -0,0 +1,43 @@
#!/usr/bin/env python2
from calibre.web.feeds.news import BasicNewsRecipe
class nosnl(BasicNewsRecipe):
title = u'nos.nl'
__author__ = u'erkfuizfeuadjfjzefzfuzeff'
description = u'News from the Netherlands in Dutch'
oldest_article = 7
language = 'nl_NL'
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
keep_only_tags = [
dict(name='div', attrs={'class': 'art_box2'}),
dict(name='h1'),
dict(name='img'),
dict(name='div', attrs={'class': 'article_textwrap'}),
]
remove_tags = [
dict(name='img', attrs={'class': 'weather-icon__image js-weather-icon'}),
]
feeds = [(u'Algemeen', u'http://feeds.nos.nl/nosnieuwsalgemeen'),
(u'Binnenland', u'http://feeds.nos.nl/nosnieuwsbinnenland'),
(u'Buitenland', u'http://feeds.nos.nl/nosnieuwsbuitenland'),
(u'Politiek', u'http://feeds.nos.nl/nosnieuwspolitiek'),
(u'Economie', u'http://feeds.nos.nl/nosnieuwseconomie'),
(u'Opmerkelijk', u'feeds.nos.nl/nosnieuwsopmerkelijk'),
(u'Koningshuis', u'http://feeds.nos.nl/nosnieuwskoningshuis'),
(u'Tech', u'http://feeds.nos.nl/nosnieuwstech'),
(u'Sport', u'http://feeds.nos.nl/nossportalgemeen'),
(u'Sport voetbal', u'http://feeds.nos.nl/nosvoetbal'),
(u'Sport wielrennen', u'http://feeds.nos.nl/nossportwielrennen'),
(u'Sport schaatsen', u'http://feeds.nos.nl/nossportschaatsen'),
(u'Sport tennis', u'http://feeds.nos.nl/nossporttennis'),
(u'Nieuwsuur', u'http://feeds.nos.nl/nieuwsuuralgemeen'),
(u'NOS op 3', u'http://feeds.feedburner.com/nosop3'),
(u'Jeugdjournaal', u'http://feeds.feedburner.com/jeugdjournaal')]