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 08-18-2011, 12:11 PM   #1
wgdojocihb9
Junior Member
wgdojocihb9 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2011
Device: K3
Request: recipe for German magazine fluter.de

Hello altogether.

I started using Calibre some days ago without actually having an ebook reader (hoping to get my Kindle 3 very soon). Kudos to Calibre, a very nice software!

Now I want to request a recipe for the German magazine fluter. It's a magazine by the Bundeszentrale für politische Bildung (Federal Agency for Civic Education) that one can subscribe to for free. All articles of the print magazine also get published on the internet, the current issue as well as the whole archives. I have read the Calibre user manual on Adding your favorite news website to calibre, but as I don't know any Python I don't know how to do this recipe.

However I think it should be fairly simple: You can find the archives here, with the current issue as the topmost. For example this is the current. Right under where it says "Inhaltsverzeichnis des fluter-Heftes" you can find all the articles of this issue, e.g. this is the first article. For the print version of any article you add ?tpl=1260 to the url (print version of the first article).

Can anybody help me? Very thanks in advance!
wgdojocihb9 is offline   Reply With Quote
Old 08-19-2011, 04:50 PM   #2
Divingduck
Fanatic
Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.
 
Posts: 531
Karma: 36672
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
If you like, you can use this one:

Spoiler:


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

'''
Fetch fluter.de
'''

from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1313693926(BasicNewsRecipe):

title = u' fluter. '
description = 'fluter.de Magazin der Bundeszentrale für politische Bildung/bpb'
language = 'de'
encoding = 'UTF-8'

__author__ = 'Armin Geller' # 2011-08-19

oldest_article = 7
max_articles_per_feed = 50


remove_tags = [
dict(name='div', attrs={'id':["comments"]}),
dict(attrs={'class':['commentlink']}),
]


keep_only_tags = [
dict(name='div', attrs={'class':["grid_8 articleText"]}),
dict(name='div', attrs={'class':["articleTextInnerText"]}),
]

feeds = [
(u'Inhalt:', u'http://www.fluter.de/de/?tpl=907'),
]

extra_css = '.cs_img {margin-right: 10pt;}'


Last edited by Divingduck; 08-20-2011 at 11:02 AM. Reason: put in spoiler
Divingduck is offline   Reply With Quote
 
Enthusiast
Old 02-05-2013, 03:25 AM   #3
Divingduck
Fanatic
Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.Divingduck can successfully navigate the Paris bus system.
 
Posts: 531
Karma: 36672
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Here is an update for this small recipe

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

'''
Fetch fluter.de
'''

from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1313693926(BasicNewsRecipe):

    title = u' fluter. '
    description = 'fluter.de Magazin der Bundeszentrale für politische Bildung/bpb'
    language = 'de'
    encoding = 'UTF-8'

    __author__ = 'Armin Geller' # 2013-02-05 V3

    oldest_article = 7  
    max_articles_per_feed = 50
    
    feeds =  [
               (u'Inhalt:', u'http://www.fluter.de/de/?tpl=907'),
              ]
    
    extra_css = '.cs_img {margin-right: 10pt;}'

    def print_version(self, url):
        return url + '?tpl=1260'


Best regards, DivingDuck
Attached Files
File Type: zip Fluter_AGe V3.zip (589 Bytes, 47 views)
Divingduck is offline   Reply With Quote
Reply

Tags
german, recipe

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe request - Macleans Magazine canislupus Recipes 7 07-24-2011 08:38 AM
Recipe Request for World Magazine fbrian Recipes 3 06-05-2011 10:10 AM
Help request with italian magazine lorenzo2004 Recipes 1 05-09-2011 04:43 AM
Request: recipe for google new "Think Quarterly" magazine gloomygod Recipes 0 03-24-2011 08:08 AM
Reason Magazine request c0llin Recipes 0 11-29-2010 03:00 PM


All times are GMT -4. The time now is 01:08 AM.


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