#!/usr/bin/env  python2

from calibre.web.feeds.recipes import BasicNewsRecipe


class SeanHannity(BasicNewsRecipe):
    cover_url = 'http://www.hannity.com/images/misc_logo.gif'
    title = u"Sean Hannity Show"
    __author__ = 'Rob Lammert - rob.lammert[at]gmail.com'
    description = u"Articles from Sean Hannity's website, www.hannity.com"
    oldest_article = 7.0
    language = 'en'
    max_articles_per_feed = 100
    recursions = 0
    encoding = 'utf8'
    no_stylesheets = True
    remove_javascript = True

    remove_tags = [
        dict(name='div', attrs={'id': [
             'header', 'navsprite', 'topminibarad', 'headline_bar', 'shadow', 'footer']}),
        dict(name='div', attrs={'class': 'rightcolumn'}),
        dict(name='table', attrs={'id': 'audiobox'}),
        dict(name='a', attrs={'title': ['Home', 'Shows', 'Guests', 'Photos']}),
        dict(name='iframe')
    ]

    feeds = [
        ('Content Feed', u'http://feeds.feedburner.com/TheSeanHannityShow-AllContent?format=xml')
    ]

