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-18-2017, 10:33 AM   #1
erkfuizfeuadjfjz
Member
erkfuizfeuadjfjz began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Feb 2017
Device: Sony PRS-T3
Recipe for De Morgen (Belgian newspaper) based on built in from Darko Miletic

#!/usr/bin/env python2

__license__ = 'GPL v3'
__copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
'''
demorgen.be
'''

from calibre.web.feeds.news import BasicNewsRecipe


class DeMorganBe(BasicNewsRecipe):
title = u'De Morgen'
__author__ = u'Darko Miletic'
description = u'News from Belgium in Dutch'
oldest_article = 7
language = 'nl_BE'

max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False

keep_only_tags = [dict(name='div', attrs={'class': 'art_box2'}),
dict(name='h1'),
dict(name='p', attrs={'class': 'article__subtitle'}),
dict(name='p', attrs={'class': 'article__intro fjs-article__intro'}),
dict(name='div', attrs={'class': 'article__body__container first'}),
dict(name='h4'),
dict(name='p', attrs={'class': 'article__body__paragraph'})
]

feeds = [

(u'Nieuws', u'http://www.demorgen.be/nieuws/rss.xml'),
(u'De Gedachte', u'http://www.demorgen.be/degedachte/rss.xml'),
(u'Financiele morgen', u'http://www.demorgen.be/financielemorgen/rss.xml'),
(u'Financiele morgen', u'http://www.demorgen.be/financielemorgen/rss.xml'),
(u'Sport', u'http://www.demorgen.be/sport/rss.xml'),
(u'Bis', u'http://www.demorgen.be/bis/rss.xml'),
(u'Magazine', u'http://www.demorgen.be/magazine/rss.xml'),
(u'De stand der dingen', u'http://www.demorgen.be/standderdingen/rss.xml')
]
erkfuizfeuadjfjz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe for Tweakers.net based on built in from Kovid Goyal erkfuizfeuadjfjz Recipes 0 02-18-2017 09:59 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
Alter built-in recipe for IP-based authentication barium Recipes 0 05-19-2012 02:20 AM
Belgian newspaper to test iRex iLiad digital version this month Bob Russell iRex 10 04-03-2006 06:47 AM


All times are GMT -4. The time now is 03:50 AM.


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