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

19 lines
702 B
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1290013720(BasicNewsRecipe):
title = u'RDS'
__author__ = 'Nexus'
language = 'en_CA'
description = 'Hockey News'
oldest_article = 7
max_articles_per_feed = 25
no_stylesheets = True
remove_tags = [dict(name='div', attrs={'id': 'rdsWrap'}),
dict(name='table', attrs={'id': 'aVoir'}),
dict(name='div', attrs={'id': 'imageChronique'})]
keep_only_tags = [dict(name='div', attrs={'id': ['enteteChronique']}),
dict(name='div', attrs={'id': ['contenuChronique']})]
feeds = [(u'RDS', u'http://www.rds.ca/hockey/fildepresse_rds.xml')]