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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class ClarionLedger(BasicNewsRecipe):
  4.     title          = u'Clarion Ledger'
  5.     oldest_article = 7
  6.     max_articles_per_feed = 100
  7.     no_stylesheets        = True
  8.     language = 'en'
  9.     __author__ = 'cr4zyd'
  10.  
  11.     feeds          = [(u'Local News', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS01'), (u'Breaking News', u'http://www.clarionledger.com/apps/pbcs.dll/section?Category=RSS'), (u'Sports', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS02'), (u'Business', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS03')]
  12.  
  13.     keep_only_tags = [dict(name='div', attrs={'class':'article-headline'}),
  14.      dict(name='div', attrs={'class':'article-bodytext'})]
  15.     remove_tags = [dict(name=['img','script','li']),
  16.      dict(name='p', attrs={'class':'ratingbyline'}),
  17.      dict(name='div', attrs={'class':'article-tools'}),
  18.      dict(name='div', attrs={'class':'article-pagination article-pagination-top'}),
  19.      dict(name='div', attrs={'class':'article-pagination article-pagination-bottom'}),
  20.      dict(name='div', attrs={'class':'articleflex-container'})]
  21.