01-02-2010, 06:15 AM | #1 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Nov 2009
Device: Kindle 3
|
DIE ZEIT Printedition?
Does anybody has an idea how to transform the print-edition of the german magazine DIE ZEIT (e.g. http://www.zeit.de/2010/01/index) into an ebook with calibre?
Gany |
01-03-2010, 08:37 AM | #2 | |
Connoisseur
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
|
Quote:
|
|
Advert | |
|
01-04-2010, 02:46 AM | #3 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Nov 2009
Device: Kindle 3
|
|
01-07-2010, 02:20 PM | #4 | |
Connoisseur
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
|
Quote:
diezeitmagazine.zip |
|
01-07-2010, 02:38 PM | #5 | |
Connoisseur
Posts: 94
Karma: 78
Join Date: Nov 2009
Location: Germany
Device: iPad 2, Sony PRS-600 (no longer used)
|
Quote:
Thanks, Laurentiu |
|
Advert | |
|
01-07-2010, 03:17 PM | #6 |
Connoisseur
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
|
Unzip the package. In calibre click on the little triangle next to 'Fetch news' and choose 'Add a custom news source'. In the dialog click on the last button on the left 'Load recipe from file'. Locate the *.py file and your done. In the "Fetch news' dialog it appears in the 'Custom' section.
|
01-07-2010, 04:03 PM | #7 | |
Connoisseur
Posts: 57
Karma: 10
Join Date: Nov 2009
Device: Kindle 3
|
Quote:
Last edited by ganymede; 01-07-2010 at 04:05 PM. |
|
01-07-2010, 05:32 PM | #8 |
Connoisseur
Posts: 94
Karma: 78
Join Date: Nov 2009
Location: Germany
Device: iPad 2, Sony PRS-600 (no longer used)
|
|
01-10-2010, 09:51 AM | #9 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Thanks, this is great!
|
02-02-2010, 01:59 PM | #10 |
Connoisseur
Posts: 56
Karma: 290
Join Date: Oct 2009
Device: Kindle 3, Kindle DXG, Cybook G3
|
I f I read the code correctly, this recipe is going to fail in a few weeks:
It only checks the /<YEAR>/index page for the current issue, but that page only holds the first 15 issues of the year. For the next 15, you need to go to /<YEAR>/index?page=2 and so on. (See the year 2009 for an example.) Solution: Start out with checking /<YEAR>/index?page=4 for issues. If there aren't any, try page=3 and page=2 before trying index without any page parameter. If that doesn't give a result, /<YEAR-1>/index?page=4 should give one (last year's final issue, for the first few days of the year). Unfortunately I don't know python, so I can't code that, but this should be enough for a coder to change the recipe. Last edited by Baumi; 02-02-2010 at 02:00 PM. Reason: Typos |
02-16-2010, 06:47 AM | #11 |
Connoisseur
Posts: 91
Karma: 28
Join Date: Apr 2007
Location: Germany
Device: PB Pro 903, Kobo Touch [Past: Story, Clié N770C, SL-10, Palm IIIxe, V]
|
Hi, I made some changes for my own needs to the recipe but want to share them here. Reason was to shorten the title, it got truncated on my reader so I could not distinguish the issues.
(pseudo-patch format ) Code:
< title = u'Die Zeit Magazine' > title = u'Die Zeit' < self.title = self.title + ' ' + self.tag_to_string(h4) > self.title = self.title + ' ' + re.sub('Ausgabe ', '', self.tag_to_string(h4)) Code:
< self.cover_url = a.img['src'] > self.cover_url = re.sub('icon_', '', a.img['src']) |
02-17-2010, 05:04 AM | #12 | |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
(Edited for fixing embarrasingly broken quote tags.) Last edited by Manichean; 02-19-2010 at 04:08 AM. |
|
02-18-2010, 08:15 PM | #13 |
Connoisseur
Posts: 91
Karma: 28
Join Date: Apr 2007
Location: Germany
Device: PB Pro 903, Kobo Touch [Past: Story, Clié N770C, SL-10, Palm IIIxe, V]
|
I'm sorry, I forgot to mention that the regular expression module has to be loaded:
Code:
from calibre.web.feeds.news import BasicNewsRecipe from datetime import date import re ... |
02-19-2010, 04:10 AM | #14 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
What about the a.img that calibre complains about not knowing? I'm assuming that doesn't get fixed? I'm asking because the bigger cover is the thing I'm most interested in.
|
02-19-2010, 04:41 AM | #15 |
Connoisseur
Posts: 91
Karma: 28
Join Date: Apr 2007
Location: Germany
Device: PB Pro 903, Kobo Touch [Past: Story, Clié N770C, SL-10, Palm IIIxe, V]
|
I don't know why calibre is complaining, "a" appears in the original recipe already. Does it work for you without the modifications? (I am not the original author)
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"DIE ZEIT" im Online-Abo auch als ePub | ewy | Deutsches Forum | 142 | 12-21-2011 07:41 AM |
Torn - Wanderer der Zeit | K-Thom | E-Books | 9 | 12-28-2010 01:03 PM |
Unutterably Silly Fußballzeit, schönste Zeit | netseeker | Lounge | 211 | 07-14-2010 11:53 AM |
Eine schlimme Zeit geginnt | reymund | Lounge | 51 | 06-12-2010 07:10 AM |
Die Zeit Jahresarchiv | Alexander Turcic | Lounge | 0 | 04-16-2003 07:20 PM |