mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
__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__ = 'Armin Geller' # AGe Update 2014-09-28
|
|
|
|
timefmt = ' [%a %d %b %Y]'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 50
|
|
no_stylesheets = True
|
|
remove_javascript = True
|
|
encoding = 'utf-8'
|
|
language = 'de'
|
|
|
|
cover_url = 'http://carta.info/carta/wp-content/uploads/2012/09/gross.jpg'
|
|
masthead_url = 'http://upload.wikimedia.org/wikipedia/de/b/ba/Carta_logo.png'
|
|
extra_css = '''
|
|
h2 {font-size: 1.3em; font-style: italic}
|
|
.excerpt {font-size: 1.2em; font-style: italic}
|
|
'''
|
|
|
|
keep_only_tags = [
|
|
dict(name='div', attrs={'class': ['article-text', 'author']}),
|
|
dict(name='p', attrs={'class': 'tags'}),
|
|
]
|
|
|
|
remove_tags = [
|
|
dict(name='ul', attrs={'class': 'meta'}),
|
|
]
|
|
|
|
feeds = [(u'Carta', u'http://feeds2.feedburner.com/carta-standard-rss')]
|