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

22 lines
734 B
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1257302745(BasicNewsRecipe):
title = u'National Public Radio'
oldest_article = 7
language = 'en'
__author__ = 'onyxrev'
max_articles_per_feed = 100
no_stylesheets = True
remove_tags_before = {'class': 'storytitle'}
remove_tags_after = dict(name='div', attrs={'id': 'storytext'})
remove_tags = [
dict(name='body', attrs={'id': 'blog'}),
dict(name='div', attrs={'class': 'enlarge_measure'}),
dict(name='div', attrs={'class': 'enlarge_html'}),
dict(name='div', attrs={'class': 'bucketwrap primary'})
]
feeds = [(u'National Public Radio', u'http://www.npr.org/rss/rss.php?id=1001')]