Register Guidelines E-Books Search Today's Posts Mark Forums Read

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


Thread Tools Search this Thread
Old 04-20-2011, 05:31 PM   #1
bosplans began at the beginning.
Posts: 11
Karma: 10
Join Date: Mar 2011
Device: kindle 3
Recipe for Il Sole 24 Ore

Fot the italian reader of Il Sole 24 Ore here the working recipe (the one embedded in Calibre is not working anymore!).
You can download the recipe here ( where you can find the instruction in italian or just copy/paste the code:

__author__    = 'Marco Saraceno'
__copyright__ = '2010, Marco Saraceno <marcosaraceno at>'
description   = 'Italian daily newspaper - v 1.1 (Mar14,2011)'


class IlSole24Ore(BasicNewsRecipe):
    __author__        = 'Marco Saraceno'
    description   = 'Italian financial daily newspaper'

    cover_url      = ''
    title          = u'Il Sole 24 Ore'
    publisher      = 'Gruppo editoriale GRUPPO 24ORE'
    category       = 'News, politics, culture, economy, financial, Italian'

    language       = 'it'
    timefmt        = '[%a, %d %b, %Y]'

    oldest_article = 2
    max_articles_per_feed = 100
    use_embedded_content  = False
    extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }'

    remove_tags = [
                            dict(name='div', attrs={'class':['header','titolo']}),
                            dict(name='table', attrs={'class':['footer1024','footerdown']}),

    def get_article_url(self, article):
       link = article.get('link', None)
       if link is None:
           return article
       if link.split('/')[-1]=="story01.htm":
           a=['0B','0C','0D','0E','0F','0G','0N'  ,'0L0S','0A']
           b=['.' ,'/' ,'?' ,'-' ,'=' ,'&' ,'.com','www.','0']
           for i in range(0,len(a)):
       return link

    feeds = [
                  (u'Notizie Italia', u''),
                  (u'Notizie Europa', u''),
                  (u'Notizie USA', u''),
                  (u'Notizie Americhe', u''),
                  (u'Notizie Medio Oriente e Africa', u''),
                  (u'Notizie Asia e Oceania', u''),
                  (u'Commenti', u''),
                  (u'Norme e tributi', u''),
                  (u'Finanza', u''),
                  (u'Economia', u''),
                  (u'Tecnologia', u''),
                  (u'Cultura', u''),

    def print_version(self, url):
          return url.replace('.shtml', '_PRN.shtml')
bosplans is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe works when mocked up as Python file, fails when converted to Recipe ode Recipes 7 09-04-2011 05:57 AM
recipe please Torx Recipes 0 01-22-2011 01:18 PM
Sole Sacrifice - free short story (novella) kcmay Self-Promotions by Authors and Publishers 3 08-24-2010 05:32 AM
Recipe Help lrain5 Calibre 3 05-09-2010 11:42 PM
Hi From Portland, Ore. USA Steve Anderson Introduce Yourself 10 02-12-2010 12:36 PM

All times are GMT -4. The time now is 05:18 AM. is a privately owned, operated and funded community.