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 01-29-2011, 08:12 PM   #1
tolyluis
Enthusiast
tolyluis doesn't littertolyluis doesn't litter
 
Posts: 49
Karma: 196
Join Date: Jan 2011
Device: Kindle 3
BBC Mundo (v1.0) - Spanish

Hi everyone:

I've made a new recipe with the spanish area from BBC, BBC Mundo (BBC World in spanish). This recipe is interesting for all spanish speakers, also it includes a section for Latin American news.

BBC Mundo - BBC World for spanish readers

SOURCE CODE

Code:
__license__   = 'GPL v3'
__author__    = 'Luis Hernandez'
__copyright__ = 'Luis Hernandez<tolyluis@gmail.com>'
__version__     = 'v1.0'
__date__        = '29 January 2011'

'''
http://www.bbc.co.uk/mundo/
'''

class AdvancedUserRecipe1294946868(BasicNewsRecipe):

    title          = u'BBC Mundo'
    publisher      = u'BBC'

    __author__            = 'Luis Hernandez'
    description           = 'BBC World for spanish readers'

    cover_url     = 'http://1.bp.blogspot.com/_NHiOjk_uZwU/TEYy7IJAdAI/AAAAAAAABP8/coAE-pJ7_5E/s1600/bbcmundo_h.png'
    oldest_article = 2
    max_articles_per_feed = 100

    remove_javascript = True
    no_stylesheets        = True
    use_embedded_content  = False

    language              = 'es'
    remove_empty_feeds    = True
    encoding               = 'UTF-8'
    timefmt        = '[%a, %d %b, %Y]'

    remove_tags_before = dict(name='div' , attrs={'class':['g-group']})
    remove_tags_after = dict(name='div' , attrs={'class':[' g-w8']})

    remove_tags = [
                             dict(name='ul', attrs={'class':['document-tools blq-clearfix','blq-clearfix']})
                            ,dict(name='div', attrs={'class':['box bx-quote-bubble','socialmedia-links','list li-carousel','list li-plain rolling-news','list li-plain','box bx-livestats','li-tab content','list li-relatedlinks','list li-relatedinternetlinks']})
                         ]

    feeds = [
                  (u'Portada'               , u'http://www.bbc.co.uk/mundo/index.xml')
                 ,(u'Ultimas Noticias'   , u'http://www.bbc.co.uk/mundo/ultimas_noticias/index.xml')
                 ,(u'Internacional'       , u'http://www.bbc.co.uk/mundo/temas/internacional/index.xml')
                 ,(u'Economia'            , u'http://www.bbc.co.uk/mundo/temas/economia/index.xml')
                 ,(u'America Latina'     , u'http://www.bbc.co.uk/mundo/temas/america_latina/index.xml')
                 ,(u'Ciencia'                , u'http://www.bbc.co.uk/mundo/temas/ciencia/index.xml')
                 ,(u'Salud'                  , u'http://www.bbc.co.uk/mundo/temas/salud/index.xml')
                 ,(u'Tecnologia'           , u'http://www.bbc.co.uk/mundo/temas/tecnologia/index.xml')
                 ,(u'Cultura'                , u'http://www.bbc.co.uk/mundo/temas/cultura/index.xml')
             ]
I Hope you enjoy it!
tolyluis is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BBC Sport limawhiskey Recipes 3 07-24-2011 09:54 AM
Ebooks on BBC Scott Nicholson General Discussions 0 07-29-2010 03:20 PM
Hola mundo johansolo Introduce Yourself 6 08-22-2009 10:53 PM
BBC Breakfast C6REW News 7 09-03-2008 01:07 PM
iLiad review in El Mundo (Spanish newspaper) ElaHuguet iRex 1 08-17-2007 11:15 AM


All times are GMT -4. The time now is 05:25 PM.


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