home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_4079 < prev    next >
Encoding:
Text File  |  2010-01-31  |  1.5 KB  |  42 lines

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. theonlinephotographer.typepad.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class theonlinephotographer(BasicNewsRecipe):
  11.     title                 = 'The Online Photographer'
  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 Online Photographer'
  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  = False
  21.     encoding              = 'utf8'
  22.     language              = 'en'
  23.  
  24.     extra_css = ' body{font-family: Georgia,"Times New Roman",serif } '
  25.  
  26.     conversion_options = {
  27.                           'comment'  : description
  28.                         , 'tags'     : category
  29.                         , 'publisher': publisher
  30.                         , 'language' : language
  31.                         }
  32.  
  33.     feeds              = [(u'Articles', u'http://feeds.feedburner.com/typepad/ZSjz')]
  34.     remove_tags_before = dict(name='h3',attrs={'class':'entry-header'})
  35.     remove_tags_after  = dict(name='div',attrs={'class':'entry-footer'})
  36.     remove_tags        = [dict(name=['object','link','iframe'])]
  37.  
  38.     def preprocess_html(self, soup):
  39.         return self.adeify_images(soup)
  40.  
  41.  
  42.