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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. db.tidbits.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class TidBITS(BasicNewsRecipe):
  11.     title                 = 'TidBITS: Mac News for the Rest of Us'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'Insightful news, reviews, and analysis of the Macintosh and Internet worlds'
  14.     publisher             = 'TidBITS Publishing Inc.'
  15.     category              = 'news, Apple, Macintosh, IT, Internet'
  16.     oldest_article        = 2
  17.     max_articles_per_feed = 100
  18.     no_stylesheets        = True
  19.     encoding              = 'utf-8'
  20.     use_embedded_content  = True
  21.     language              = 'en'
  22.     remove_empty_feeds    = True
  23.     masthead_url          = 'http://db.tidbits.com/images/tblogo9.gif'
  24.     extra_css             = ' body{font-family: Georgia,"Times New Roman",Times,serif} '
  25.  
  26.     conversion_options = {
  27.                           'comment'   : description
  28.                         , 'tags'      : category
  29.                         , 'publisher' : publisher
  30.                         , 'language'  : language
  31.                         }
  32.  
  33.     remove_attributes = ['width','height']
  34.     remove_tags       = [dict(name='small')]
  35.     remove_tags_after = dict(name='small')
  36.  
  37.     feeds = [
  38.                (u'Business Apps'              , u'http://db.tidbits.com/feeds/business.rss'     )
  39.               ,(u'Entertainment'              , u'http://db.tidbits.com/feeds/entertainment.rss')
  40.               ,(u'External Links'             , u'http://db.tidbits.com/feeds/links.rss'        )
  41.               ,(u'Home Mac'                   , u'http://db.tidbits.com/feeds/home.rss'         )
  42.               ,(u'Inside TidBITS'             , u'http://db.tidbits.com/feeds/inside.rss'       )
  43.               ,(u'iPod & iPhone'              , u'http://db.tidbits.com/feeds/ipod-iphone.rss'  )
  44.               ,(u'Just for Fun'               , u'http://db.tidbits.com/feeds/fun.rss'          )
  45.               ,(u'Macs & Mac OS X'            , u'http://db.tidbits.com/feeds/macs.rss'         )
  46.               ,(u'Media Creation'             , u'http://db.tidbits.com/feeds/creative.rss'     )
  47.               ,(u'Networking & Communications', u'http://db.tidbits.com/feeds/net.rss'          )
  48.               ,(u'Opinion & Editorial'        , u'http://db.tidbits.com/feeds/opinion.rss'      )
  49.               ,(u'Support & Problem Solving'  , u'http://db.tidbits.com/feeds/support.rss'      )
  50.               ,(u'Safe Computing'             , u'http://db.tidbits.com/feeds/security.rss'     )
  51.               ,(u'Tech News'                  , u'http://db.tidbits.com/feeds/tech.rss'         )
  52.               ,(u'Software Watchlist'         , u'http://db.tidbits.com/feeds/watchlist.rss'    )
  53.             ]
  54.