Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 02-17-2017, 04:11 PM   #1
erkfuizfeuadjfjz
Member
erkfuizfeuadjfjz began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Feb 2017
Device: Sony PRS-T3
Recipe for Het Laatste Nieuws (Belgian newspaper) based on built in recipe of Darko M

#!/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'Articles', u'http://www.hln.be/rss.xml')]
erkfuizfeuadjfjz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe voor De Tijd (Belgian newspaper) based on built in recipe of Darko Miletic erkfuizfeuadjfjz Recipes 0 02-17-2017 03:43 PM
Modify Built-In Recipe to Eliminate Images? huladaddy Recipes 12 08-17-2014 11:48 PM
Alter built-in recipe for IP-based authentication barium Recipes 0 05-19-2012 03:20 AM
Recipe for Dutch newspaper "Dagblad van het Noorden" reijndert Recipes 2 05-18-2011 08:52 AM
Tricky problem with built-in recipe - need your help.... :( stachuman Recipes 3 05-04-2011 04:08 PM


All times are GMT -4. The time now is 09:01 PM.


MobileRead.com is a privately owned, operated and funded community.