home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_4141 < prev    next >
Encoding:
Text File  |  2010-02-12  |  1.6 KB  |  45 lines

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. __docformat__ = 'restructuredtext en'
  4.  
  5.  
  6. from calibre.web.feeds.news import BasicNewsRecipe
  7.  
  8. class Wired_Daily(BasicNewsRecipe):
  9.  
  10.     title = 'Wired Daily Edition'
  11.     __author__ = 'Kovid Goyal'
  12.     description = 'Technology news'
  13.     timefmt  = ' [%Y%b%d  %H%M]'
  14.     language = 'en'
  15.  
  16.     no_stylesheets = True
  17.  
  18.     remove_tags_before = dict(name='div', id='content')
  19.     remove_tags = [dict(id=['social_tools', 'outerWrapper', 'sidebar',
  20.         'footer', 'advertisement', 'blog_subscription_unit',
  21.         'brightcove_component']),
  22.         {'class':'entryActions'},
  23.         dict(name=['noscript', 'script'])]
  24.  
  25.     feeds = [
  26.         ('Top News', 'http://feeds.wired.com/wired/index'),
  27.         ('Culture', 'http://feeds.wired.com/wired/culture'),
  28.         ('Software', 'http://feeds.wired.com/wired/software'),
  29.         ('Mac', 'http://feeds.feedburner.com/cultofmac/bFow'),
  30.         ('Gadgets', 'http://feeds.wired.com/wired/gadgets'),
  31.         ('Cars', 'http://feeds.wired.com/wired/cars'),
  32.         ('Entertainment', 'http://feeds.wired.com/wired/entertainment'),
  33.         ('Gaming', 'http://feeds.wired.com/wired/gaming'),
  34.         ('Science', 'http://feeds.wired.com/wired/science'),
  35.         ('Med Tech', 'http://feeds.wired.com/wired/medtech'),
  36.         ('Politics', 'http://feeds.wired.com/wired/politics'),
  37.         ('Tech Biz', 'http://feeds.wired.com/wired/techbiz'),
  38.         ('Commentary', 'http://feeds.wired.com/wired/commentary'),
  39.         ]
  40.  
  41.     def print_version(self, url):
  42.         return url.replace('http://www.wired.com/', 'http://www.wired.com/print/')
  43.  
  44.  
  45.