mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-11-23 06:53:02 -05:00
20 lines
787 B
Plaintext
20 lines
787 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
|
|
|
|
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')]
|