mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
21 lines
813 B
Plaintext
21 lines
813 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')]
|