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

  1. #!/usr/bin/env python
  2. # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
  3. from __future__ import with_statement
  4.  
  5. __license__   = 'GPL v3'
  6. __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
  7. __docformat__ = 'restructuredtext en'
  8.  
  9.  
  10. from calibre.web.feeds.news import BasicNewsRecipe
  11.  
  12. class PHDComics(BasicNewsRecipe):
  13.     title          = u'PHD Comics'
  14.     oldest_article = 14
  15.     max_articles_per_feed = 100
  16.     language = 'en'
  17.  
  18.     __author__ = 'Rafardeon'
  19.  
  20.     feeds          = [(u'PHD Comics', u'http://www.phdcomics.com/gradfeed.php')]
  21.  
  22.     def print_version(self, url):
  23.         return url.replace('http://www.phdcomics.com/comics.php?f=', 'http://www.phdcomics.com/comics/archive_print.php?comicid=')
  24.