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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2012, 10:52 AM   #1
Divingduck
Fanatic
Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.
 
Posts: 562
Karma: 124000
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Zeit-Online (DE)

I made a updat for the recipe Zeit-Online.de. The old one had some errors. The cover will have again a weekly update.

Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'

'''
Fetch Zeit-Online.de
'''
from calibre.web.feeds.news import BasicNewsRecipe
from datetime import date

class ZeitDe(BasicNewsRecipe):

    __author__            = 'Armin Geller'    # AGe 2012-10-13
    title                 = u'Zeit-Online'
    description           = u'German  online portal of newspaper Die Zeit'
    publisher             = 'ZEIT ONLINE GmbH'
    category              = 'news, Germany'
    timefmt               = ' [%a, %d %b %Y]'
    publication_type      = 'newspaper'
    language              = 'de_DE'
    encoding              = 'UTF-8'

    oldest_article        = 7
    max_articles_per_feed = 100
    remove_empty_feeds    = True
    auto_cleanup          = True
    # no_stylesheets = True
    # conversion_options = {'base_font_size': 10}

    masthead_url          = 'http://images.zeit.de/static/img/logo_247x30.png'

    year = str(date.today().isocalendar()[0]) # [0]=year [1]=week number [2]=week day
    week = str(date.today().isocalendar()[1]+1)
    cover_url = 'http://images.zeit.de/bilder/titelseiten_zeit/titelfluss/'  + year + '/0'+ week + '_001.jpg'
 
    feeds =  [
               (u'Startseite – Die wichtigsten Themen auf einen Blick', u'http://newsfeed.zeit.de/index_xml'),
               (u'Politik – Ausland und Deutschland', u'http://newsfeed.zeit.de/politik/index'),
               (u'Wirtschaft – Wirtschaft und Unternehmen', u'http://newsfeed.zeit.de/wirtschaft/index'),
               (u'Meinung – Autoren kommentieren', u'http://newsfeed.zeit.de/meinung/index'),
               (u'Gesellschaft – Gesellschaft und soziales Leben', u'http://newsfeed.zeit.de/gesellschaft/index'),
               (u'Kultur – Literatur, Kunst, Film und Musik', u'http://newsfeed.zeit.de/kultur/index'),
               (u'Wissen – Wissenschaft, Gesundheit, Umwelt und Geschichte', u'http://newsfeed.zeit.de/wissen/index'),
               (u'Digital – Hardware, Software, Internet, Datenschutz', u'http://newsfeed.zeit.de/digital/index'),
               (u'Studium – ZEIT ONLINE für Studenten', u'http://newsfeed.zeit.de/studium/index'),
               (u'Karriere – Für Ein-, Um- und Aufsteiger', u'http://newsfeed.zeit.de/karriere/index'),
               (u'Lebensart – Freizeit und Leben', u'http://newsfeed.zeit.de/lebensart/index'),
               (u'Reisen – All inclusive und individuell', u'http://newsfeed.zeit.de/reisen/index'),
               (u'Auto – Modelle und Trends', u'http://newsfeed.zeit.de/auto/index'),
               (u'Sport – Sieg und Niederlage', u'http://newsfeed.zeit.de/sport/index')
             ]

    def print_version(self, url):
        return url + '/komplettansicht?print=true'


Have a nice weekend.
Attached Files
File Type: zip Zeit_Online_AGe_V3.zip (1.2 KB, 60 views)
Divingduck is offline   Reply With Quote
Old 01-09-2014, 05:39 PM   #2
Divingduck
Fanatic
Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.
 
Posts: 562
Karma: 124000
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
A new update for this recipe. Cover and newsfeed update.

Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'

'''
Fetch Zeit-Online.de
'''
from calibre.web.feeds.news import BasicNewsRecipe
from datetime import date

class ZeitDe(BasicNewsRecipe):

    __author__            = 'Armin Geller'    # AGe 2014-01-09
    title                 = u'Zeit-Online'
    description           = u'German  online portal of newspaper Die Zeit'
    publisher             = 'ZEIT ONLINE GmbH'
    category              = 'news, Germany'
    timefmt               = ' [%a, %d %b %Y]'
    publication_type      = 'newspaper'
    language              = 'de_DE'
    encoding              = 'UTF-8'

    oldest_article        = 7
    max_articles_per_feed = 100
    remove_empty_feeds    = True
    auto_cleanup          = True

    masthead_url          = 'http://images.zeit.de/static/img/logo_247x30.png'

    year = str(date.today().isocalendar()[0]) # [0]=year [1]=week number [2]=week day
    week = str(date.today().isocalendar()[1]+1).zfill(3) # AGE 2014-01-09: week needs 3 digits with prefix 0 

    cover_url = 'http://images.zeit.de/bilder/titelseiten_zeit/titelfluss/'  + year + '/'+ week + '_001.jpg' # AGE 2014-01-09 
    
    extra_css = '.caption {font-size: 0.9em; font-style: italic; } \
	                .excerpt {font-size: 1.3em; font-style: italic; } '
 
    feeds =  [
               (u'Startseite – Die wichtigsten Themen auf einen Blick', u'http://newsfeed.zeit.de/index_xml'),
               (u'Politik – Ausland und Deutschland', u'http://newsfeed.zeit.de/politik/index'),
               (u'Wirtschaft – Wirtschaft und Unternehmen', u'http://newsfeed.zeit.de/wirtschaft/index'),
               (u'Meinung – Autoren kommentieren', u'http://newsfeed.zeit.de/meinung/index'),
               (u'Gesellschaft – Gesellschaft und soziales Leben', u'http://newsfeed.zeit.de/gesellschaft/index'),
               (u'Kultur – Literatur, Kunst, Film und Musik', u'http://newsfeed.zeit.de/kultur/index'),
               (u'Wissen – Wissenschaft, Gesundheit, Umwelt und Geschichte', u'http://newsfeed.zeit.de/wissen/index'),
               (u'Digital – Hardware, Software, Internet, Datenschutz', u'http://newsfeed.zeit.de/digital/index'),
               (u'Studium – ZEIT ONLINE für Studenten', u'http://newsfeed.zeit.de/studium/index'),
               (u'Karriere – Für Ein-, Um- und Aufsteiger', u'http://newsfeed.zeit.de/karriere/index'),
               (u'Lebensart – Freizeit und Leben', u'http://newsfeed.zeit.de/lebensart/index'),
               (u'Reisen – All inclusive und individuell', u'http://newsfeed.zeit.de/reisen/index'),
               (u'Mobilität – Wie wir uns fortbewegen', u'http://newsfeed.zeit.de/mobilitaet/index'), # AGe 2014-01-09
               (u'Sport – Sieg und Niederlage', u'http://newsfeed.zeit.de/sport/index')
              ]

    def print_version(self, url):
        return url + '/komplettansicht?print=true'
Attached Files
File Type: zip Zeit_Online_AGe_V4.zip (1.3 KB, 27 views)
Divingduck is offline   Reply With Quote
 
Advertisement
Old 02-26-2014, 04:05 AM   #3
Divingduck
Fanatic
Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.Divingduck can talk all four legs off a donkey... then persuade it to go for a walk.
 
Posts: 562
Karma: 124000
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
A new update because of missing Cover

Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'

'''
Fetch Zeit-Online.de
'''
from calibre.web.feeds.news import BasicNewsRecipe
from datetime import date

class ZeitDe(BasicNewsRecipe):

    __author__            = 'Armin Geller'    # AGe 2014-02-26
    title                 = u'Zeit-Online'
    description           = u'German  online portal of newspaper Die Zeit'
    publisher             = 'ZEIT ONLINE GmbH'
    category              = 'news, Germany'
    timefmt               = ' [%a, %d %b %Y]'
    publication_type      = 'newspaper'
    language              = 'de_DE'
    encoding              = 'UTF-8'

    oldest_article        = 7
    max_articles_per_feed = 100
    remove_empty_feeds    = True
    auto_cleanup          = True

    masthead_url          = 'http://images.zeit.de/static/img/logo_247x30.png'

    year = str(date.today().isocalendar()[0]) # [0]=year [1]=week number [2]=week day
    #week = str(date.today().isocalendar()[1]+1).zfill(3) # AGE 2014-01-09: week needs 3 digits with prefix 0 
    week = str(date.today().isocalendar()[1]).zfill(3) # AGE 2014-02-26: week
    cover_url = 'http://images.zeit.de/bilder/titelseiten_zeit/titelfluss/'  + year + '/'+ week + '_001.jpg' # AGE 2014-01-09 
    
    extra_css = '.caption {font-size: 0.9em; font-style: italic; } \
	                .excerpt {font-size: 1.3em; font-style: italic; } '
 
    feeds =  [
               (u'Startseite – Die wichtigsten Themen auf einen Blick', u'http://newsfeed.zeit.de/index_xml'),
               (u'Politik – Ausland und Deutschland', u'http://newsfeed.zeit.de/politik/index'),
               (u'Wirtschaft – Wirtschaft und Unternehmen', u'http://newsfeed.zeit.de/wirtschaft/index'),
               (u'Meinung – Autoren kommentieren', u'http://newsfeed.zeit.de/meinung/index'),
               (u'Gesellschaft – Gesellschaft und soziales Leben', u'http://newsfeed.zeit.de/gesellschaft/index'),
               (u'Kultur – Literatur, Kunst, Film und Musik', u'http://newsfeed.zeit.de/kultur/index'),
               (u'Wissen – Wissenschaft, Gesundheit, Umwelt und Geschichte', u'http://newsfeed.zeit.de/wissen/index'),
               (u'Digital – Hardware, Software, Internet, Datenschutz', u'http://newsfeed.zeit.de/digital/index'),
               (u'Studium – ZEIT ONLINE für Studenten', u'http://newsfeed.zeit.de/studium/index'),
               (u'Karriere – Für Ein-, Um- und Aufsteiger', u'http://newsfeed.zeit.de/karriere/index'),
               (u'Lebensart – Freizeit und Leben', u'http://newsfeed.zeit.de/lebensart/index'),
               (u'Reisen – All inclusive und individuell', u'http://newsfeed.zeit.de/reisen/index'),
               (u'Mobilität – Wie wir uns fortbewegen', u'http://newsfeed.zeit.de/mobilitaet/index'), # AGe 2014-01-09
               (u'Sport – Sieg und Niederlage', u'http://newsfeed.zeit.de/sport/index')
              ]

    def print_version(self, url):
        return url + '/komplettansicht?print=true'
Attached Files
File Type: zip Zeit_Online_AGe_V5.zip (1.3 KB, 22 views)
Divingduck is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"DIE ZEIT" im Online-Abo auch als ePub ewy Deutsches Forum 142 12-21-2011 08:41 AM
Zeit-Online recipe does not work with Sony reader lesbett Recipes 5 07-13-2011 12:47 PM
902 Freeze von Zeit zu Zeit knorst PocketBook 7 03-21-2011 06:16 PM
PB360 display ist von zeit zu zeit streifig klaetsch PocketBook 2 01-10-2011 06:24 AM
German / Deutsch - Zeit Online broken feodor Recipes 26 12-20-2010 01:08 PM


All times are GMT -4. The time now is 11:51 PM.


MobileRead.com is a privately owned, operated and funded community.