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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2011, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. grrm.livejournal.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class NotABlog(BasicNewsRecipe):
  11.     title                 = 'Not A Blog - George R.R. Martin'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'George R.R. Martin'
  14.     oldest_article        = 15
  15.     max_articles_per_feed = 100
  16.     language              = 'en'
  17.     encoding              = 'utf-8'
  18.     no_stylesheets        = True
  19.     use_embedded_content  = True
  20.     publication_type      = 'blog'
  21.  
  22.     conversion_options = {
  23.                           'comment'  : description
  24.                         , 'tags'     : 'sf, fantasy, game of thrones'
  25.                         , 'publisher': 'George R.R. Martin'
  26.                         , 'language' : language
  27.                         }
  28.  
  29.     feeds = [(u'Posts', u'http://grrm.livejournal.com/data/rss')]
  30.  
  31.     def preprocess_html(self, soup):
  32.         for item in soup.findAll(style=True):
  33.             del item['style']
  34.         return self.adeify_images(soup)
  35.  
  36.  
  37.