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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. www.digitalspy.co.uk
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class DigitalSpyUK(BasicNewsRecipe):
  11.     title                 = 'Digital Spy - UK Edition'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'Entertainment news about the biggest TV shows, films and celebrities, updated around the clock.'
  14.     publisher             = 'Digital Spy Limited.'
  15.     category              = 'news, showbiz, big brother, x factor, torchwood, doctor who, tv, media, sky, freeview, cable'
  16.     oldest_article        = 2
  17.     max_articles_per_feed = 100
  18.     no_stylesheets        = True
  19.     encoding              = 'cp1252'
  20.     use_embedded_content  = False
  21.     language              = 'en_GB'
  22.     remove_empty_feeds    = True
  23.     extra_css             = ' body{font-family: Verdana,Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} .info{font-size: small} '
  24.  
  25.     conversion_options = {
  26.                           'comment'   : description
  27.                         , 'tags'      : category
  28.                         , 'publisher' : publisher
  29.                         , 'language'  : language
  30.                         }
  31.  
  32.     remove_tags       = [dict(name=['link'])]
  33.     remove_attributes = ['height','width']
  34.     keep_only_tags    = [dict(name='div',attrs={'id':'content'})]
  35.  
  36.     feeds = [
  37.               (u'News'          , u'http://www.digitalspy.co.uk/rss/zones/gb/all.xml'          )
  38.              ,(u'Big Brother'   , u'http://www.digitalspy.co.uk/rss/zones/gb/bigbrother.xml'   )
  39.              ,(u'Entertainment' , u'http://www.digitalspy.co.uk/rss/zones/gb/entertainment.xml')
  40.              ,(u'General'       , u'http://www.digitalspy.co.uk/rss/zones/gb/general.xml'      )
  41.              ,(u'Media'         , u'http://www.digitalspy.co.uk/rss/zones/gb/media.xml'        )
  42.             ]
  43.  
  44.