#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2009, Darko Miletic ' ''' www.hln.be ''' from calibre.web.feeds.news import BasicNewsRecipe class HLN_be(BasicNewsRecipe): title = 'Het Laatste Nieuws' __author__ = 'Darko Miletic' description = 'News from Belgium in Dutch' publisher = 'HLN' category = 'news, politics, Belgium' oldest_article = 2 max_articles_per_feed = 100 use_embedded_content = False no_stylesheets = True encoding = 'utf-8' language = 'nl_BE' conversion_options = {'comments': description, 'tags': category, 'language': 'nl-NL', 'publisher': publisher} remove_tags = [dict(name=['form', 'object', 'embed'])] keep_only_tags = [ dict(name='article', attrs={'class': 'article art_detail'}), ] feeds = [ ('Alle nieuws', 'http://www.hln.be/rss.xml'), ('Binnenland', 'http://www.hln.be/nieuws/binnenland/rss.xml'), ('Buitenland', 'http://www.hln.be/nieuws/buitenland/rss.xml'), ('Sport nieuws', 'http://www.hln.be/sport/rss.xml'), ('Voetbal', 'http://www.hln.be/sport/voetbal/rss.xml'), ('Wielrennen', 'http://www.hln.be/sport/wielrennen/rss.xml'), ('Tennis', 'http://www.hln.be/sport/tennis/rss.xml'), ('Formule 1', 'http://www.hln.be/sport/formule1/rss.xml'), ('Auto en Motor sport', 'http://www.hln.be/sport/automotorsport/rss.xml'), ('Meer sport', 'http://www.hln.be/sport/meersport/rss.xml'), ('Timeout', 'http://www.hln.be/sport/timeout/rss.xml'), ('You', 'http://www.hln.be/you/rss.xml'), ('Fit & Gezond', 'http://www.hln.be/you/fitgezond/rss.xml'), ('Sex & Relaties', 'http://www.hln.be/you/seksrelaties/rss.xml'), ('Je Carrière', 'http://www.hln.be/you/carriere/rss.xml'), ('Psycho', 'http://www.hln.be/you/psycho/rss.xml'), ('Je Kinderen', 'http://www.hln.be/you/kinderen/rss.xml'), ('Lekker Eten', 'http://www.hln.be/you/lekkereten/rss.xml'), ('Style', 'http://www.hln.be/you/style/rss.xml'), ('Celebrities', 'http://www.hln.be/stars/celebrities/rss.xml'), ('Film', 'http://www.hln.be/stars/film/rss.xml'), ('Royalty', 'http://www.hln.be/stars/royalty/rss.xml'), ('Kunst & Literatuur', 'http://www.hln.be/stars/kunstliteratuur/rss.xml'), ('TV', 'http://www.hln.be/stars/tv/rss.xml'), ('Reizen', 'http://www.hln.be/reizen/rss.xml'), ('Planet', 'http://www.hln.be/planet/rss.xml'), ('Extreme Aarde', 'http://www.hln.be/planet/extremeaarde/rss.xml'), ('Global Warming', 'http://www.hln.be/planet/globalwarming/rss.xml'), ('Ecotips', 'http://www.hln.be/planet/ecotips/rss.xml'), ('Dieren', 'hhttp://www.hln.be/planet/dieren/rss.xml'), ('Milieu', 'http://www.hln.be/planet/milieu/rss.xml'), ('Auto', 'http://www.hln.be/auto/rss.xml'), ('iHLN', 'http://www.hln.be/ihln/rss.xml'), ('Multimedia', 'http://www.hln.be/ihln/multimedia/rss.xml'), ('Internet', 'http://www.hln.be/ihln/internet/rss.xml'), ('Games', 'http://www.hln.be/ihln/games/rss.xml'), ('Geld', 'http://www.hln.be/geld/rss.xml'), ('Economie', 'http://www.hln.be/geld/economie/rss.xml'), ('Consument', 'http://www.hln.be/geld/consument/rss.xml'), ('Bizar', 'http://www.hln.be/bizar/rss.xml'), ('Wetenschap', 'http://www.hln.be/wetenschap/rss.xml'), ('Muziek', 'http://www.hln.be/muziek/rss.xml'), ('Muziek nieuws', 'http://www.hln.be/muziek/nieuws/rss.xml'), ('Festivals en concerten', 'http://www.hln.be/muziek/festivalsconcerten/rss.xml'), ('Nieuwe platen', 'http://www.hln.be/muziek/nieuweplaten/rss.xml'), ('Geld', 'http://www.hln.be/geld/rss.xml'), ]