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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. beta.rs
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class Danas(BasicNewsRecipe):
  12.     title                 = 'BETA - English'
  13.     __author__            = 'Darko Miletic'
  14.     description           = 'Serbian news agency'
  15.     publisher             = 'Beta'
  16.     category              = 'news, politics, Serbia'
  17.     oldest_article        = 2
  18.     max_articles_per_feed = 100
  19.     no_stylesheets        = False
  20.     use_embedded_content  = True
  21.     language = 'en'
  22.  
  23.     lang                  = 'en'
  24.  
  25.     conversion_options = {
  26.                           'comment'          : description
  27.                         , 'tags'             : category
  28.                         , 'publisher'        : publisher
  29.                         , 'language'         : lang
  30.                         , 'pretty_print'     : True
  31.                         }
  32.  
  33.  
  34.     feeds          = [(u'News', u'http://www.beta.rs/rssen.asp')]
  35.  
  36.     def preprocess_html(self, soup):
  37.         return self.adeify_images(soup)
  38.