home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / npr.recipe < prev    next >
Text File  |  2011-09-09  |  813b  |  21 lines

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