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 02-06-2011, 06:19 PM   #1
tolyluis
Enthusiast
tolyluis doesn't littertolyluis doesn't litter
 
Posts: 49
Karma: 196
Join Date: Jan 2011
Device: Kindle 3
Europa Press (v1.0) - Spanish

Hi All:

I made some days before a recipe with news from a spanish agency news called

Europa Press - http://www.europapress.es/

RELEASE NOTES

Europa Press is a well-known agency news from Spain, I've taken all the feeds from "Secciones Principales" EXCEPT EP Social feed. Also I discarted all the local feeds and innovation feeds. Impossible to take all the content of the webpage.

SOURCE CODE

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

'''
www.europapress.es
'''

class AdvancedUserRecipe1294946868(BasicNewsRecipe):

    title          = u'Europa Press'
    author            = 'Luis Hernandez'
    description           = 'spanish news agency'

    oldest_article = 2
    max_articles_per_feed = 100

    remove_javascript = True
    no_stylesheets        = True
    use_embedded_content  = False

    language              = 'es'
    timefmt        = '[%a, %d %b, %Y]'
  
    remove_tags_before = dict(name='div' , attrs={'class':['nivel1 bg_3col']})
    remove_tags_after  = dict(name='div' , attrs={'id':['ImprimirEnviarNoticia']})

    remove_tags = [
                             dict(name='ul', attrs={'id':['entidadesNoticia','MenuSecciones']})
                            ,dict(name='div', attrs={'id':['ImprimirEnviarNoticia','PublicidadSuperior','CabeceraDerecha','Comentarios','comentarios full fbConnectAPI','ComentarEstaNoticia','ctl00_Superior_Main_MasEnChance_cajamasnoticias','gl_chn','videos_portada_derecha','galeria_portada_central','galeria_portada_central_boxes']})
                            ,dict(name='div', attrs={'class':['infoRelacionada','col_1','buscador','caja doblecolumna strong','CHANCE_EP_Encuesta_frontal text','seccionportada col_0','seccion header','text','pie caption_over']})
                            ,dict(name='a', attrs={'class':['buscadorLabel']})
                            ,dict(name='span', attrs={'class':['editado']})							
                            ,dict(name='table')
                            ,dict(name='li')
                        ] 


    feeds = [
                 (u'Portada'              , u'http://www.europapress.es/rss/rss.aspx')
                ,(u'Nacional'             , u'http://www.europapress.es/rss/rss.aspx?ch=66')
                ,(u'Internacional'       , u'http://www.europapress.es/rss/rss.aspx?ch=69')
                ,(u'Economia'           , u'http://www.europapress.es/rss/rss.aspx?ch=136')
                ,(u'Deportes'            , u'http://www.europapress.es/rss/rss.aspx?ch=67')
                ,(u'Cultura'               , u'http://www.europapress.es/rss/rss.aspx?ch=126')
                ,(u'Sociedad'            , u'http://www.europapress.es/rss/rss.aspx?ch=73')
                ,(u'Motor'                 , u'http://www.europapress.es/rss/rss.aspx?ch=435')
                ,(u'CHANCE'             , u'http://www.europapress.es/rss/rss.aspx?ch=549')
                ,(u'Comunicados'      , u'http://www.europapress.es/rss/rss.aspx?ch=137')
             ]
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
Spanish? OBoyle General Discussions 11 02-10-2011 09:32 PM
Springer Science+Business Media bringt "MyCopy" nach Europa beachwanderer Deutsches Forum 0 05-17-2010 07:25 AM
When will the press get it right? pilotbob News 41 01-25-2010 03:10 PM
GRYPHONWOOD PRESS/BLADE RED PRESS Halloween Giveaway Winter Deals, Freebies, and Resources (No Self-Promotion) 0 10-30-2009 07:39 AM
Poetry Novalis: Die Christenheit oder Europa - german V.1 - 21.05.2009 Insider ePub Books 0 05-21-2009 11:09 AM


All times are GMT -4. The time now is 05:26 AM.


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