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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. luminous-landscape.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class theluminouslandscape(BasicNewsRecipe):
  11.     title                 = 'The Luminous Landscape'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'A photography news and information website in the form of a weblog with multiple authors who write on a variety of photography and art-photography related issues.'
  14.     publisher             = 'The Luminous Landscape '
  15.     category              = 'news, blog, photograph, international'
  16.     oldest_article        = 15
  17.     max_articles_per_feed = 100
  18.     no_stylesheets        = True
  19.     remove_empty_feeds    = True
  20.     use_embedded_content  = True
  21.     encoding              = 'cp1252'
  22.     language              = 'en'
  23.  
  24.     conversion_options = {
  25.                           'comment'  : description
  26.                         , 'tags'     : category
  27.                         , 'publisher': publisher
  28.                         , 'language' : language
  29.                         }
  30.  
  31.     feeds              = [(u"What's new", u'http://www.luminous-landscape.com/whatsnew/rssfeed.php')]
  32.     remove_tags        = [dict(name=['object','link','iframe'])]
  33.  
  34.     def preprocess_html(self, soup):
  35.         return self.adeify_images(soup)
  36.  
  37.  
  38.