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

20 lines
834 B
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1289990851(BasicNewsRecipe):
title = u'The Hockey News'
language = 'en_CA'
__author__ = 'Nexus'
oldest_article = 7
max_articles_per_feed = 25
no_stylesheets = True
remove_tags = [dict(name='div', attrs={'class': 'article_info'}),
dict(name='div', attrs={'class': 'photo_details'}),
dict(name='div', attrs={'class': 'tool_menu'}),
dict(name='div', attrs={'id': 'comments_container'}),
dict(name='div', attrs={'id': 'wrapper'})]
keep_only_tags = [dict(name='h1', attrs={'class': ['headline']}),
dict(name='div', attrs={'class': ['box_container']})]
feeds = [(u'THN', u'http://www.thehockeynews.com/rss/all_categories.xml')]