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

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2009, Kovid Goyal kovid@kovidgoyal.net'
  4. __docformat__ = 'restructuredtext en'
  5.  
  6. '''
  7. teleread.org
  8. '''
  9.  
  10. from calibre.web.feeds.news import BasicNewsRecipe
  11.  
  12. class Teleread(BasicNewsRecipe):
  13.     
  14.     title = 'Teleread Blog'
  15.     description = 'News & views on e-books, libraries, publishing and related topics'
  16.     __author__  = 'Kovid Goyal'
  17.     language = 'en'
  18.  
  19.     
  20.     feeds = [('Entries', 'http://www.teleread.org/feed/')]
  21.     
  22.     remove_tags = [dict(attrs={'class':['sociable', 'comments', 
  23.                                         'wlWriterSmartContent', 'feedflare']})]
  24.     
  25.     def get_article_url(self, article):
  26.         return article.get('feedburner_origlink', article.get('link', article.get('guid')))