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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
  3.  
  4. '''
  5. Fetch Carta.info.
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10.  
  11. class Carta(BasicNewsRecipe):
  12.  
  13.     title = u'Carta'
  14.     description = 'News about electronic publishing'
  15.     __author__ = 'Oliver Niesner'
  16.     use_embedded_content   = False
  17.     timefmt = ' [%a %d %b %Y]'
  18.     oldest_article = 7
  19.     max_articles_per_feed = 50
  20.     no_stylesheets = True
  21.     remove_javascript = True
  22.     #html2epub_options = 'linearize_tables = True\nbase_font_size2=14'
  23.     encoding = 'utf-8'
  24.     language = 'de'
  25.  
  26.  
  27.  
  28.     remove_tags_after = [dict(name='p', attrs={'class':'tags-blog'})]
  29.  
  30.     remove_tags = [dict(name='p', attrs={'class':'print'}),
  31.                    dict(name='p', attrs={'class':'tags-blog'}),
  32.                    dict(name='p', attrs={'class':'mail'}),
  33.                    dict(name='p', attrs={'style':'text-align: center;'}),
  34.                    dict(name='p', attrs={'align':'left'}),
  35.                    dict(name='p', attrs={'class':'date'}),
  36.                    dict(id='comments'),
  37.                    dict(id='headerleft'),
  38.                    dict(id='subnav'),
  39.                    dict(id='headerright')]
  40.  
  41.  
  42.     feeds =  [ (u'Carta', u'http://feeds2.feedburner.com/carta-standard-rss') ]
  43.  
  44.  
  45.     def print_version(self, url):
  46.         return url + 'print/'
  47.