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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
  3. '''
  4. www.business-standard.com
  5. '''
  6.  
  7. from calibre.web.feeds.recipes import BasicNewsRecipe
  8.  
  9. class BusinessStandard(BasicNewsRecipe):
  10.     title                  = 'Business Standard'
  11.     __author__             = 'Darko Miletic'
  12.     description            = "India's most respected business daily"
  13.     oldest_article         = 7
  14.     max_articles_per_feed  = 100
  15.     no_stylesheets         = True
  16.     use_embedded_content   = False
  17.     encoding               = 'cp1252'
  18.     publisher              = 'Business Standard Limited'
  19.     category               = 'news, business, money, india, world'
  20.     language               = 'en_IN'
  21.  
  22.     conversion_options = {
  23.                              'comments'        : description
  24.                             ,'tags'            : category
  25.                             ,'language'        : language
  26.                             ,'publisher'       : publisher
  27.                             ,'linearize_tables': True
  28.                          }
  29.     keep_only_tags=[dict(attrs={'class':'TableClas'})]
  30.     remove_tags = [
  31.                      dict(name=['object','link','script','iframe','base','meta'])
  32.                     ,dict(attrs={'class':'rightDiv2'})
  33.                     ,dict(name='table',attrs={'width':'450px'})
  34.                   ]
  35.     remove_attributes=['width','height']
  36.  
  37.     feeds = [
  38.                (u'News Now'            , u'http://feeds.business-standard.com/rss/online.xml')
  39.               ,(u'Banking & finance'   , u'http://feeds.business-standard.com/rss/3_0.xml'   )
  40.               ,(u'Companies & Industry', u'http://feeds.business-standard.com/rss/2_0.xml'   )
  41.               ,(u'Economy & Policy'    , u'http://feeds.business-standard.com/rss/4_0.xml'   )
  42.               ,(u'Tech World'          , u'http://feeds.business-standard.com/rss/8_0.xml'   )
  43.               ,(u'Life & Leisure'      , u'http://feeds.business-standard.com/rss/6_0.xml'   )
  44.               ,(u'Markets & Investing' , u'http://feeds.business-standard.com/rss/1_0.xml'   )
  45.               ,(u'Management & Mktg'   , u'http://feeds.business-standard.com/rss/7_0.xml'   )
  46.               ,(u'Opinion'             , u'http://feeds.business-standard.com/rss/5_0.xml'   )
  47.             ]
  48.