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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. thescotsman.scotsman.com
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class TheScotsman(BasicNewsRecipe):
  12.     title                 = u'The Scotsman'
  13.     __author__            = 'Darko Miletic'
  14.     description           = 'News from Scotland'
  15.     oldest_article        = 7
  16.     max_articles_per_feed = 100
  17.     no_stylesheets        = True
  18.     use_embedded_content  = False
  19.     language = 'en_GB'
  20.  
  21.     simultaneous_downloads = 1
  22.  
  23.     keep_only_tags = [dict(name='div', attrs={'id':'viewarticle'})]
  24.     remove_tags = [
  25.                      dict(name='div'  , attrs={'class':'viewarticlepanel' })
  26.                   ]
  27.  
  28.     feeds          = [
  29.                         (u'Latest National News', u'http://thescotsman.scotsman.com/getFeed.aspx?Format=rss§ionid=4068'),
  30.                         ('UK', 'http://thescotsman.scotsman.com/getfeed.aspx?sectionid=7071&format=rss'),
  31.                         ('Scotland', 'http://thescotsman.scotsman.com/getfeed.aspx?sectionid=7042&format=rss'),
  32.                         ('International', 'http://thescotsman.scotsman.com/getfeed.aspx?sectionid=7000&format=rss'),
  33.                         ('Politics', 'http://thescotsman.scotsman.com/getfeed.aspx?sectionid=6990&format=rss'),
  34.                         ('Entertainment', 'http://thescotsman.scotsman.com/getfeed.aspx?sectionid=7010&format=rss'),
  35.                         ('Features', 'http://thescotsman.scotsman.com/getfeed.aspx?sectionid=6996&format=rss'),
  36.                         ('Opinion', 'http://thescotsman.scotsman.com/getfeed.aspx?sectionid=7074&format=rss'),
  37.                      ]
  38.