Debian Codegraph @

recipes/hln_be.recipe

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