02-19-2017, 09:10 AM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2017
Device: Sony PRS-T3
|
improved recipe for hln.be (Belgian news website)
#!/usr/bin/env python2
__license__ = 'GPL v3' __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>' ''' 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 = [ (u'Alle nieuws', u'http://www.hln.be/rss.xml'), (u'Binnenland', u'http://www.hln.be/nieuws/binnenland/rss.xml'), (u'Buitenland', u'http://www.hln.be/nieuws/buitenland/rss.xml'), (u'Sport nieuws', u'http://www.hln.be/sport/rss.xml'), (u'Voetbal', u'http://www.hln.be/sport/voetbal/rss.xml'), (u'Wielrennen', u'http://www.hln.be/sport/wielrennen/rss.xml'), (u'Tennis', u'http://www.hln.be/sport/tennis/rss.xml'), (u'Formule 1', u'http://www.hln.be/sport/formule1/rss.xml'), (u'Auto en Motor sport', u'http://www.hln.be/sport/automotorsport/rss.xml'), (u'Meer sport', u'http://www.hln.be/sport/meersport/rss.xml'), (u'Timeout', u'http://www.hln.be/sport/timeout/rss.xml'), (u'You', u'http://www.hln.be/you/rss.xml'), (u'Fit & Gezond', u'http://www.hln.be/you/fitgezond/rss.xml'), (u'Sex & Relaties', u'http://www.hln.be/you/seksrelaties/rss.xml'), (u'Je Carrière', u'http://www.hln.be/you/carriere/rss.xml'), (u'Psycho', u'http://www.hln.be/you/psycho/rss.xml'), (u'Je Kinderen', u'http://www.hln.be/you/kinderen/rss.xml'), (u'Lekker Eten', u'http://www.hln.be/you/lekkereten/rss.xml'), (u'Style', u'http://www.hln.be/you/style/rss.xml'), (u'Celebrities', u'http://www.hln.be/stars/celebrities/rss.xml'), (u'Film', u'http://www.hln.be/stars/film/rss.xml'), (u'Royalty', u'http://www.hln.be/stars/royalty/rss.xml'), (u'Kunst & Literatuur', u'http://www.hln.be/stars/kunstliteratuur/rss.xml'), (u'TV', u'http://www.hln.be/stars/tv/rss.xml'), (u'Reizen', u'http://www.hln.be/reizen/rss.xml'), (u'Planet', u'http://www.hln.be/planet/rss.xml'), (u'Extreme Aarde', u'http://www.hln.be/planet/extremeaarde/rss.xml'), (u'Global Warming', u'http://www.hln.be/planet/globalwarming/rss.xml'), (u'Ecotips', u'http://www.hln.be/planet/ecotips/rss.xml'), (u'Dieren', u'hhttp://www.hln.be/planet/dieren/rss.xml'), (u'Milieu', u'http://www.hln.be/planet/milieu/rss.xml'), (u'Auto', u'http://www.hln.be/auto/rss.xml'), (u'iHLN', u'http://www.hln.be/ihln/rss.xml'), (u'Multimedia', u'http://www.hln.be/ihln/multimedia/rss.xml'), (u'Internet', u'http://www.hln.be/ihln/internet/rss.xml'), (u'Games', u'http://www.hln.be/ihln/games/rss.xml'), (u'Geld', u'http://www.hln.be/geld/rss.xml'), (u'Economie', u'http://www.hln.be/geld/economie/rss.xml'), (u'Consument', u'http://www.hln.be/geld/consument/rss.xml'), (u'Bizar', u'http://www.hln.be/bizar/rss.xml'), (u'Wetenschap', u'http://www.hln.be/wetenschap/rss.xml'), (u'Muziek', u'http://www.hln.be/muziek/rss.xml'), (u'Muziek nieuws', u'http://www.hln.be/muziek/nieuws/rss.xml'), (u'Festivals en concerten', u'http://www.hln.be/muziek/festivalsconcerten/rss.xml'), (u'Nieuwe platen', u'http://www.hln.be/muziek/nieuweplaten/rss.xml'), (u'Geld', u'http://www.hln.be/geld/rss.xml') ] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
recipe for sporza.be (Belgian sport news) | erkfuizfeuadjfjz | Recipes | 0 | 02-18-2017 02:17 PM |
Recipe for nos.nl (Dutch news website) | erkfuizfeuadjfjz | Recipes | 0 | 02-18-2017 11:26 AM |
Recipe for Het Laatste Nieuws (Belgian newspaper) based on built in recipe of Darko M | erkfuizfeuadjfjz | Recipes | 0 | 02-17-2017 03:11 PM |
Recipe voor De Tijd (Belgian newspaper) based on built in recipe of Darko Miletic | erkfuizfeuadjfjz | Recipes | 0 | 02-17-2017 02:43 PM |
Website login sure seems to have improved | taming | Kobo Reader | 5 | 10-23-2011 10:27 AM |