Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2011, 01: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, 05:50 PM   #2
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
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 12:02 PM. Reason: put in spoiler
Divingduck is offline   Reply With Quote
Advert
Old 02-05-2013, 04:25 AM   #3
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
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, 482 views)
Divingduck is offline   Reply With Quote
Old 06-16-2023, 07:25 AM   #4
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Here is an updated version of this recipe.
Best regards,
DD
Attached Files
File Type: zip Fluter_AGe_v4.1.zip (773 Bytes, 108 views)
Divingduck is offline   Reply With Quote
Old 06-17-2023, 09:42 AM   #5
MoeReed
Member
MoeReed began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2017
Device: none
Quote:
Originally Posted by Divingduck View Post
Here is an updated version of this recipe.
Best regards,
DD


that works great! Never heard of fluter before, but it will have to work since neither the German nor English versions of deutsche welle work anymore.
MoeReed is offline   Reply With Quote
Advert
Reply

Tags
german, recipe


Forum Jump

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


All times are GMT -4. The time now is 06:35 AM.


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