mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix recipe for De Standaard
This commit is contained in:
parent
48b99181d1
commit
ef0e39bfc3
@ -9,25 +9,21 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
class DeStandaard(BasicNewsRecipe):
|
class DeStandaard(BasicNewsRecipe):
|
||||||
title = u'De Standaard'
|
title = u'De Standaard'
|
||||||
__author__ = u'Darko Miletic'
|
__author__ = u'Darko Miletic'
|
||||||
language = _('Dutch')
|
language = _('Dutch')
|
||||||
description = u'News from Belgium'
|
description = u'News from Belgium'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
encoding = 'utf-8'
|
||||||
keep_only_tags = [dict(name='div' , attrs={'id':'_parts_midContainer_div'})]
|
|
||||||
remove_tags_after = dict(name='h3', attrs={'title':'Binnenland'})
|
keep_only_tags = [dict(name='div' , attrs={'id':['intro','continued']})]
|
||||||
remove_tags = [
|
|
||||||
dict(name='h3' , attrs={'title':'Binnenland' })
|
|
||||||
,dict(name='p' , attrs={'class':'by' })
|
|
||||||
,dict(name='div' , attrs={'class':'articlesright'})
|
|
||||||
,dict(name='a' , attrs={'class':'help' })
|
|
||||||
,dict(name='a' , attrs={'class':'archive' })
|
|
||||||
,dict(name='a' , attrs={'class':'print' })
|
|
||||||
,dict(name='a' , attrs={'class':'email' })
|
|
||||||
]
|
|
||||||
|
|
||||||
feeds = [
|
feeds = [(u'De Standaard Online', u'http://feeds.feedburner.com/dso-front')]
|
||||||
(u'De Standaard Online', u'http://feeds.feedburner.com/dso-front')
|
|
||||||
]
|
|
||||||
|
def get_article_url(self, article):
|
||||||
|
return article.get('guid', None)
|
||||||
|
|
||||||
|
def print_version(self, url):
|
||||||
|
return url.replace('/Detail.aspx?','/PrintArtikel.aspx?')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user