From 54f312496a2628b1cb5554add9aa24e2f376437a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Feb 2017 07:52:23 +0530 Subject: [PATCH] nos.nl by erkfuizfeuadjfjzefzfuzeff --- recipes/nos_nl.recipe | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 recipes/nos_nl.recipe diff --git a/recipes/nos_nl.recipe b/recipes/nos_nl.recipe new file mode 100644 index 0000000000..92ca7c0616 --- /dev/null +++ b/recipes/nos_nl.recipe @@ -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')]