Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes


Thread Tools Search this Thread
Old 03-09-2013, 08:30 AM   #1
Junior Member
msel began at the beginning.
Posts: 6
Karma: 10
Join Date: Sep 2010
Device: Sony
Computerwoche - german computer news


here is a recipe for the Computerwoche - a german computer newspaper.

__license__   = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at>'
Fetch Computerwoche.

from import BasicNewsRecipe

class Computerwoche(BasicNewsRecipe):

    title = 'Computerwoche'
    description = 'german computer newspaper'
    language = 'de'
    __author__ = 'Maria Seliger'
    use_embedded_content   = False
    timefmt = ' [%d %b %Y]'
    max_articles_per_feed = 15
    linearize_tables = True
    no_stylesheets = True
    remove_stylesheets = True
    remove_javascript = True
    encoding = 'utf-8'
    html2epub_options = 'base_font_size=10'
    BasicNewsRecipe.summary_length = 100
    auto_cleanup = True

    extra_css = '''
                    h2{font-family:Arial,Helvetica,sans-serif; font-size: x-small; color: #003399;}
                    a{font-family:Arial,Helvetica,sans-serif; font-size: x-small; font-style:italic;}
                    .dachzeile p{font-family:Arial,Helvetica,sans-serif; font-size: x-small; }
                    h1{ font-family:Arial,Helvetica,sans-serif;  font-size:x-large; font-weight:bold;}
                    .artikelTeaser{font-family:Arial,Helvetica,sans-serif; font-size: x-small; font-weight:bold; }
                    body{font-family:Arial,Helvetica,sans-serif; }
                    .photo {font-family:Arial,Helvetica,sans-serif; font-size: x-small; color: #666666;}                 '''

    feeds =  [ ('Computerwoche', ''),
	       ('IDG Events', ''),
	       ('Computerwoche Jobs und Karriere', ''),
	       ('Computerwoche BI und ECM', ''),
	       ('Computerwoche Cloud Computing', ''),
	       ('Computerwoche Compliance und Recht', ''),
	       ('Computerwoche CRM', ''),
	       ('Computerwoche Data Center und Server', ''),
	       ('Computerwoche ERP', ''),
	       ('Computerwoche IT Macher', ''),
	       ('Computerwoche IT-Services', ''),
	       ('Computerwoche IT-Strategie', ''),
	       ('Computerwoche Mittelstands-IT', ''),
	       ('Computerwoche Mobile und Wireless', ''),
	       ('Computerwoche Netzwerk', ''),
	       ('Computerwoche Notebook und PC', ''),
	       ('Computerwoche Office und Tools', ''),
	       ('Computerwoche Security', ''),
	       ('Computerwoche SOA und BPM', ''),
	       ('Computerwoche Software Infrastruktur', ''),
	       ('Computerwoche Storage', ''),
	       ('Computerwoche VoIP und TK', ''),
	       ('Computerwoche Web', ''),
               ('Computerwoche Home-IT', '')]

    def print_version(self, url):
        return url.replace ('/a/', '/a/print/noimages/')
The news created with this recipe have no images. If you want to see the image version you have to change the line

    def print_version(self, url):
        return url.replace ('/a/', '/a/print/noimages/')

    def print_version(self, url):
        return url.replace ('/a/', '/a/print/')
Greetings Maria
msel is offline   Reply With Quote

computernews, german language, recipe

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
german rss news dkosse Recipes 3 11-28-2012 07:17 AM
Problem: Fetsch News in Russian for German FB2 Teamplay Conversion 6 05-04-2011 05:58 PM
Computer Tech news jbcohen Lounge 10 03-24-2011 12:45 AM
Deauthorizing a computer from Adobe Digital Reader without the computer MasterGame General Discussions 5 10-27-2010 11:36 PM

All times are GMT -4. The time now is 08:37 AM. is a privately owned, operated and funded community.