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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
  3.  
  4. '''
  5. Fetch Anandtech.
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10.  
  11. class anan(BasicNewsRecipe):
  12.  
  13.     title = 'Anandtech'
  14.     description = 'comprehensive Hardware Tests'
  15.     __author__ = 'Oliver Niesner'
  16.     use_embedded_content   = False
  17.     language = 'en'
  18.     timefmt = ' [%d %b %Y]'
  19.     max_articles_per_feed = 40
  20.     no_stylesheets = True
  21.     remove_javascript = True
  22.     encoding = 'utf-8'
  23.  
  24.     remove_tags=[dict(name='a', attrs={'style':'width:110px; margin-top:0px;text-align:center;'}),
  25.          dict(name='a', attrs={'style':'width:110px; margin-top:0px; margin-right:20px;text-align:center;'})]
  26.  
  27.     feeds =  [ ('Anandtech', 'http://www.anandtech.com/rss/')]
  28.  
  29.     def print_version(self,url):
  30.         return url.replace('/show/', '/print/')
  31.  
  32.  
  33.