| 1 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 2 |
|
| 3 |
|
| 4 |
class AdvancedUserRecipe1257302745(BasicNewsRecipe): |
| 5 |
title = 'National Public Radio' |
| 6 |
oldest_article = 7 |
| 7 |
language = 'en' |
| 8 |
__author__ = 'onyxrev' |
| 9 |
max_articles_per_feed = 100 |
| 10 |
no_stylesheets = True |
| 11 |
|
| 12 |
remove_tags_before = {'class': 'storytitle'} |
| 13 |
remove_tags_after = dict(name='div', attrs={'id': 'storytext'}) |
| 14 |
remove_tags = [ |
| 15 |
dict(name='body', attrs={'id': 'blog'}), |
| 16 |
dict(name='div', attrs={'class': 'enlarge_measure'}), |
| 17 |
dict(name='div', attrs={'class': 'enlarge_html'}), |
| 18 |
dict(name='div', attrs={'class': 'bucketwrap primary'}), |
| 19 |
] |
| 20 |
|
| 21 |
feeds = [('National Public Radio', 'http://www.npr.org/rss/rss.php?id=1001')] |