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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2. import re
  3.  
  4. class AdvancedUserRecipe1299640653(BasicNewsRecipe):
  5.     title          = u'Oakland North'
  6.     oldest_article = 30
  7.     max_articles_per_feed = 100
  8.  
  9.     language = 'en'
  10.     __author__ = 'noah'
  11.     description = 'Oakland North'
  12.     category = 'news'
  13.     no_stylesheets = True
  14.  
  15.     masthead_url = 'http://oaklandnorth.net/wp-content/themes/oaklandnorth/images/masthead.png'
  16.  
  17.     keep_only_tags    = [dict(name='div', attrs={'class':re.compile(r'\bpost\b(?!-)', re.IGNORECASE)})]
  18.  
  19.     remove_tags_after = [dict(name='p', attrs={'class':'post-postscript'})]
  20.  
  21.     remove_tags    = [dict(name='p', attrs={'class':'post-postscript'})]
  22.  
  23.     feeds          = [(u'All Headlines', u'http://oaklandnorth.net/feed/')]
  24.