calibre/recipes/hallo_assen.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

40 lines
1.4 KiB
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1302341394(BasicNewsRecipe):
title = u'Hallo Assen'
oldest_article = 180
max_articles_per_feed = 100
__author__ = 'Reijndert'
no_stylesheets = True
cover_url = 'http://www.halloassen.nl/multimedia/halloassen/archive/00002/HalloAssen_2518a.gif'
language = 'nl'
country = 'NL'
version = 1
category = u'Nieuws'
timefmt = ' %Y-%m-%d (%a)'
keep_only_tags = [dict(name='div', attrs={'class': 'photoFrame'}), dict(name='div', attrs={'class': 'textContent'})
]
remove_tags = [
dict(name='div', attrs={'id': 'articleLinks'}), dict(name='div', attrs={'class': 'categories clearfix'}), dict(
name='div', attrs={'id': 'rating'}), dict(name='div', attrs={'id': 'comments'})
]
feeds = [
(u'Ons Nieuws', u'http://feeds.feedburner.com/halloassen/onsnieuws'),
(u'Politie', u'http://www.halloassen.nl/rss/?c=37'),
(u'Rechtbank', u'http://www.halloassen.nl/rss/?c=39'),
(u'Justitie', u'http://www.halloassen.nl/rss/?c=36'),
(u'Evenementen', u'http://www.halloassen.nl/rss/?c=34'),
(u'Cultuur', u'http://www.halloassen.nl/rss/?c=32'),
(u'Politiek', u'http://www.halloassen.nl/rss/?c=38'),
(u'Economie', u'http://www.halloassen.nl/rss/?c=33')]
extra_css = '''
body {font-family: verdana, arial, helvetica, geneva, sans-serif;}
'''