home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3961 < prev    next >
Encoding:
Text File  |  2010-05-01  |  1.4 KB  |  37 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.     no_stylesheets = True
  16.     oldest_article        = 2
  17.     max_articles_per_feed = 100
  18.  
  19.     keep_only_tags     = [dict(name='div', attrs={'id':'content'})
  20.                           ]
  21.  
  22.     remove_tags    = [dict(name='div', attrs={'class':['footer','tools_horizontal']}),
  23.                       dict(name='div', attrs={'id':['tool_holder','elsewhere_on_avclub']})
  24.                       ]
  25.     extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }'
  26.  
  27.     feeds          = [
  28.                       ('Interviews', 'http://www.avclub.com/feed/interview/'),
  29.                       ('AV Club Daily', 'http://www.avclub.com/feed/daily'),
  30.                       ('Film', 'http://www.avclub.com/feed/film/'),
  31.                       ('Music', 'http://www.avclub.com/feed/music/'),
  32.                       ('DVD', 'http://www.avclub.com/feed/dvd/'),
  33.                       ('Books', 'http://www.avclub.com/feed/books/'),
  34.                       ('Games', 'http://www.avclub.com/feed/games/'),
  35.                       ('Interviews', 'http://www.avclub.com/feed/interview/'),
  36.                     ]
  37.