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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
  5. '''
  6. bbc.co.uk
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class BBC(BasicNewsRecipe):
  12.     title          = u'The Onion AV Club'
  13.     __author__     = 'Stephen Williams'
  14.     description    = 'Film, Television and Music Reviews'
  15.     language = 'en'
  16.     no_stylesheets = True
  17.     oldest_article        = 2
  18.     max_articles_per_feed = 100
  19.  
  20.     keep_only_tags     = [dict(name='div', attrs={'id':'content'})
  21.                           ]
  22.  
  23.     remove_tags    = [dict(name='div', attrs={'class':['footer','tools_horizontal']}),
  24.                       dict(name='div', attrs={'id':['tool_holder','elsewhere_on_avclub']})
  25.                       ]
  26.     extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }'
  27.  
  28.     feeds          = [
  29.                       ('TV', 'http://www.avclub.com/feed/tv/'),
  30.                       ('AV Club Daily', 'http://www.avclub.com/feed/daily'),
  31.                       ('Film', 'http://www.avclub.com/feed/film/'),
  32.                       ('Music', 'http://www.avclub.com/feed/music/'),
  33.                       ('DVD', 'http://www.avclub.com/feed/dvd/'),
  34.                       ('Books', 'http://www.avclub.com/feed/books/'),
  35.                       ('Games', 'http://www.avclub.com/feed/games/'),
  36.                       ('Interviews', 'http://www.avclub.com/feed/interview/'),
  37.                     ]
  38.