From 78766dff92e259271a97e159ebb572e707791bdf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Feb 2017 07:53:59 +0530 Subject: [PATCH] Zita.be by erkfuizfeuadjfjzefzfuzeff --- recipes/zita_be.recipe | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes/zita_be.recipe diff --git a/recipes/zita_be.recipe b/recipes/zita_be.recipe new file mode 100644 index 0000000000..40477f28ea --- /dev/null +++ b/recipes/zita_be.recipe @@ -0,0 +1,36 @@ +#!/usr/bin/env python2 + +from calibre.web.feeds.news import BasicNewsRecipe + + +class Zitabe(BasicNewsRecipe): + title = u'Zita.be' + __author__ = u'erkfuizfeuadjfjzefzfuzeff' + description = u'Lifestyle News from Belgium in Dutch' + oldest_article = 7 + language = 'nl_BE' + + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + + keep_only_tags = [ + dict(name='title'), dict(name='article', attrs={'class': 'article-main'}) + ] + + remove_tags = [ + dict(name='div', attrs={'class': 'box-50 box-omega sidebar-webtips'}), + dict(name='blockquote', attrs={'class': 'instagram-media'}), + ] + + feeds = [(u'Auto', u'http://www.zita.be/xml/auto.xml'), + (u'Business', u'http://www.zita.be/xml/business.xml'), + (u'Entertainment', u'http://www.zita.be/xml/entertainment.xml'), + (u'Fun', u'http://www.zita.be/xml/fun.xml'), + (u'Lifestyle', u'http://www.zita.be/xml/lifestyle.xml'), + (u'Nieuws', u'http://www.zita.be/xml/nieuws.xml'), + (u'Nieuws binneland', u'http://www.zita.be/xml/nieuws-binnenland.xml'), + (u'Bizar', u'http://www.zita.be/xml/nieuws-bizar.xml'), + (u'Nieuws Buitenland', u'http://www.zita.be/xml/nieuws-buitenland.xml'), + (u'Nieuws Economie', u'http://www.zita.be/xml/nieuws-economie.xml'), + (u'Sport', u'http://www.zita.be/xml/nieuws-sport.xml')]