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

  1.  
  2. from calibre.web.feeds.news import BasicNewsRecipe
  3.  
  4. class GlasgowHerald(BasicNewsRecipe):
  5.     title          = u'Glasgow Herald'
  6.     oldest_article = 1
  7.     max_articles_per_feed = 100
  8.     no_stylesheets = True
  9.     language = 'en_GB'
  10.  
  11.     __author__     = 'Kovid Goyal'
  12.  
  13.     keep_only_tags = [dict(attrs={'class':'article'})]
  14.     remove_tags = [
  15.             dict(id=['pic-nav']),
  16.             dict(attrs={'class':['comments-top']})
  17.             ]
  18.  
  19.  
  20.     feeds          = [
  21.                         (u'News', u'http://www.heraldscotland.com/cmlink/1.758'),
  22.                         (u'Sport', u'http://www.heraldscotland.com/cmlink/1.761'),
  23.                         (u'Business', u'http://www.heraldscotland.com/cmlink/1.763'),
  24.                         (u'Life & Style', u'http://www.heraldscotland.com/cmlink/1.770'),
  25.                         (u'Arts & Entertainment',
  26.                         u'http://www.heraldscotland.com/cmlink/1.768',),
  27.                         (u'Columnists', u'http://www.heraldscotland.com/cmlink/1.658574')]
  28.  
  29.  
  30.