1#!/usr/local/bin/python3.8 2 3__license__ = 'GPL v3' 4__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>' 5''' 6www.hln.be 7''' 8 9from calibre.web.feeds.news import BasicNewsRecipe 10 11 12class HLN_be(BasicNewsRecipe): 13 title = 'Het Laatste Nieuws' 14 __author__ = 'Darko Miletic' 15 description = 'News from Belgium in Dutch' 16 publisher = 'HLN' 17 category = 'news, politics, Belgium' 18 oldest_article = 2 19 max_articles_per_feed = 100 20 use_embedded_content = False 21 no_stylesheets = True 22 encoding = 'utf-8' 23 language = 'nl_BE' 24 25 conversion_options = { 26 'comments': description, 27 'tags': category, 28 'language': 'nl-NL', 29 'publisher': publisher 30 } 31 32 remove_tags = [dict(name=['form', 'object', 'embed'])] 33 34 keep_only_tags = [ 35 dict(name='article', attrs={'class': 'article art_detail'}), 36 ] 37 38 feeds = [ 39 (u'Alle nieuws', u'http://www.hln.be/rss.xml'), 40 (u'Binnenland', u'http://www.hln.be/nieuws/binnenland/rss.xml'), 41 (u'Buitenland', u'http://www.hln.be/nieuws/buitenland/rss.xml'), 42 (u'Sport nieuws', u'http://www.hln.be/sport/rss.xml'), 43 (u'Voetbal', u'http://www.hln.be/sport/voetbal/rss.xml'), 44 (u'Wielrennen', u'http://www.hln.be/sport/wielrennen/rss.xml'), 45 (u'Tennis', u'http://www.hln.be/sport/tennis/rss.xml'), 46 (u'Formule 1', u'http://www.hln.be/sport/formule1/rss.xml'), 47 (u'Auto en Motor sport', u'http://www.hln.be/sport/automotorsport/rss.xml'), 48 (u'Meer sport', u'http://www.hln.be/sport/meersport/rss.xml'), 49 (u'Timeout', u'http://www.hln.be/sport/timeout/rss.xml'), 50 (u'You', u'http://www.hln.be/you/rss.xml'), 51 (u'Fit & Gezond', u'http://www.hln.be/you/fitgezond/rss.xml'), 52 (u'Sex & Relaties', u'http://www.hln.be/you/seksrelaties/rss.xml'), 53 (u'Je Carrière', u'http://www.hln.be/you/carriere/rss.xml'), ( 54 u'Psycho', u'http://www.hln.be/you/psycho/rss.xml' 55 ), (u'Je Kinderen', u'http://www.hln.be/you/kinderen/rss.xml'), 56 (u'Lekker Eten', u'http://www.hln.be/you/lekkereten/rss.xml'), ( 57 u'Style', u'http://www.hln.be/you/style/rss.xml' 58 ), (u'Celebrities', u'http://www.hln.be/stars/celebrities/rss.xml'), ( 59 u'Film', u'http://www.hln.be/stars/film/rss.xml' 60 ), (u'Royalty', u'http://www.hln.be/stars/royalty/rss.xml'), ( 61 u'Kunst & Literatuur', u'http://www.hln.be/stars/kunstliteratuur/rss.xml' 62 ), (u'TV', u'http://www.hln.be/stars/tv/rss.xml'), ( 63 u'Reizen', u'http://www.hln.be/reizen/rss.xml' 64 ), (u'Planet', u'http://www.hln.be/planet/rss.xml'), ( 65 u'Extreme Aarde', u'http://www.hln.be/planet/extremeaarde/rss.xml' 66 ), (u'Global Warming', u'http://www.hln.be/planet/globalwarming/rss.xml'), ( 67 u'Ecotips', u'http://www.hln.be/planet/ecotips/rss.xml' 68 ), (u'Dieren', u'hhttp://www.hln.be/planet/dieren/rss.xml'), ( 69 u'Milieu', u'http://www.hln.be/planet/milieu/rss.xml' 70 ), (u'Auto', u'http://www.hln.be/auto/rss.xml'), ( 71 u'iHLN', u'http://www.hln.be/ihln/rss.xml' 72 ), (u'Multimedia', u'http://www.hln.be/ihln/multimedia/rss.xml'), ( 73 u'Internet', u'http://www.hln.be/ihln/internet/rss.xml' 74 ), (u'Games', u'http://www.hln.be/ihln/games/rss.xml'), ( 75 u'Geld', u'http://www.hln.be/geld/rss.xml' 76 ), (u'Economie', u'http://www.hln.be/geld/economie/rss.xml'), ( 77 u'Consument', u'http://www.hln.be/geld/consument/rss.xml' 78 ), (u'Bizar', u'http://www.hln.be/bizar/rss.xml'), ( 79 u'Wetenschap', u'http://www.hln.be/wetenschap/rss.xml' 80 ), (u'Muziek', u'http://www.hln.be/muziek/rss.xml'), 81 (u'Muziek nieuws', u'http://www.hln.be/muziek/nieuws/rss.xml'), ( 82 u'Festivals en concerten', 83 u'http://www.hln.be/muziek/festivalsconcerten/rss.xml' 84 ), (u'Nieuwe platen', u'http://www.hln.be/muziek/nieuweplaten/rss.xml'), 85 (u'Geld', u'http://www.hln.be/geld/rss.xml') 86 ] 87