mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
__license__ = 'GPL v3'
|
|
__copyright__ = '2011, Rasmus Lauritsen <rasmus at lauritsen.info>'
|
|
'''
|
|
aoh.dk
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class aoh_dk(BasicNewsRecipe):
|
|
title = 'Alt om Herning'
|
|
__author__ = 'Rasmus Lauritsen'
|
|
description = 'Nyheder fra Herning om omegn'
|
|
publisher = 'Mediehuset Herning Folkeblad'
|
|
category = 'news, local, Denmark'
|
|
oldest_article = 14
|
|
max_articles_per_feed = 50
|
|
no_stylesheets = True
|
|
delay = 1
|
|
encoding = 'utf8'
|
|
use_embedded_content = False
|
|
language = 'da'
|
|
extra_css = """ body{font-family: Verdana,Arial,sans-serif }
|
|
img{margin-bottom: 0.4em}
|
|
.txtContent,.stamp{font-size: small}
|
|
"""
|
|
|
|
conversion_options = {
|
|
'comment': description, 'tags': category, 'publisher': publisher, 'language': language
|
|
}
|
|
|
|
feeds = [(u'All news', u'http://aoh.dk/rss.xml')]
|
|
|
|
keep_only_tags = [
|
|
dict(name='h1'), dict(name='span', attrs={'class': ['frontpage_body']})
|
|
]
|
|
|
|
remove_tags = [
|
|
dict(name=['object', 'link'])
|
|
]
|