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;}
                '''

