calibre/recipes/seanhannity.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

32 lines
1016 B
Python

#!/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')
]