View Single Post
Old 01-07-2013, 12:07 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
I made an update for this recipe because it wasn't working well.

Spoiler:
Code:
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1303841067(BasicNewsRecipe):

    title                 = u'B├Ârse-online'
    __author__            = 'schuster, Armin Geller'
    oldest_article        = 1
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False
    language              = 'de'
    remove_javascript     = True
    encoding              = 'iso-8859-1'
    timefmt               = ' [%a, %d %b %Y]'
    
    
    cover_url = 'http://www.wirtschaftsmedien-shop.de/s/media/coverimages/7576_2013107.jpg'
    masthead_url = 'http://upload.wikimedia.org/wikipedia/de/5/56/B%C3%B6rse_Online_Logo.svg'

    remove_tags_after = [dict(name='div', attrs={'class':['artikelfuss', 'rahmen600']})]
    
    remove_tags = [
                    dict(name='div', attrs={'id':['breadcrumb', 'rightCol', 'clearall']}),
                    dict(name='div', attrs={'class':['footer', 'artikelfuss']}),
                  ]

    keep_only_tags    = [
                          dict(name='div', attrs={'id':['contentWrapper']})
                        ]

    feeds          = [(u'B├Ârsennachrichten', u'http://www.boerse-online.de/rss/')]
    
    def print_version(self, url):
        return url.replace('.html#nv=rss', '.html?mode=print')
Attached Files
File Type: zip Boerse-Online_AGe.zip (784 Bytes, 36 views)
Divingduck is offline   Reply With Quote