View Single Post
Old 01-07-2013, 11:07 AM   #2
Divingduck
Fanatic
Divingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolateDivingduck is generous with chocolate
 
Posts: 503
Karma: 33884
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, 26 views)
Divingduck is offline   Reply With Quote