New recipe for Carta by Oliver Niesner

This commit is contained in:
Kovid Goyal 2009-05-29 09:04:17 -07:00
parent 23dd44edc2
commit 30fb99527e
3 changed files with 46 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -44,7 +44,7 @@ recipe_modules = ['recipe_' + r for r in (
'stackoverflow', 'telepolis_artikel', 'zaobao', 'usnews', 'stackoverflow', 'telepolis_artikel', 'zaobao', 'usnews',
'straitstimes', 'index_hu', 'pcworld_hu', 'hrt', 'rts', 'straitstimes', 'index_hu', 'pcworld_hu', 'hrt', 'rts',
'h1', 'h2', 'h3', 'phd_comics', 'woz_die', 'elektrolese', 'h1', 'h2', 'h3', 'phd_comics', 'woz_die', 'elektrolese',
'climate_progress', 'climate_progress', 'carta',
)] )]
import re, imp, inspect, time, os import re, imp, inspect, time, os

View File

@ -0,0 +1,45 @@
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
'''
Fetch Carta.info.
'''
from calibre.web.feeds.news import BasicNewsRecipe
class Carta(BasicNewsRecipe):
title = u'Carta'
description = 'News about electronic publishing'
__author__ = 'Oliver Niesner'
use_embedded_content = False
timefmt = ' [%a %d %b %Y]'
oldest_article = 7
max_articles_per_feed = 50
no_stylesheets = True
remove_javascript = True
#html2epub_options = 'linearize_tables = True\nbase_font_size2=14'
encoding = 'utf-8'
language = _('German')
remove_tags_after = [dict(name='p', attrs={'class':'tags-blog'})]
remove_tags = [dict(name='p', attrs={'class':'print'}),
dict(name='p', attrs={'class':'tags-blog'}),
dict(name='p', attrs={'class':'mail'}),
dict(name='p', attrs={'style':'text-align: center;'}),
dict(name='p', attrs={'align':'left'}),
dict(name='p', attrs={'class':'date'}),
dict(id='comments'),
dict(id='headerleft'),
dict(id='subnav'),
dict(id='headerright')]
feeds = [ (u'Carta', u'http://feeds2.feedburner.com/carta-standard-rss') ]
def print_version(self, url):
return url + 'print/'