Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-02-2010, 07:11 PM   #1
cioarcos
Junior Member
cioarcos began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: none
Recipe for El Periódico and Sport

Hello from Spain.
Any person can help me and give recipes por :

http://www.elperiodico.com/es/

http://www.sport.es/


Thank you very much.
cioarcos is offline   Reply With Quote
Old 11-06-2010, 01:21 AM   #2
jefferson_frantz
Member
jefferson_frantz began at the beginning.
 
jefferson_frantz's Avatar
 
Posts: 14
Karma: 12
Join Date: Jan 2009
Location: Lima, Perú
Device: Kindle 2 and Sony Reader PRS 505
Quote:
Originally Posted by cioarcos View Post
Hello from Spain.
Any person can help me and give recipes por :

http://www.elperiodico.com/es/

http://www.sport.es/


Thank you very much.
Here is the recipe for "Diario Sport"

Spoiler:

Code:
class DiarioSport(BasicNewsRecipe):
    title          = u'Diario Sport'
    oldest_article = 2
    max_articles_per_feed = 75
    __author__  = 'Jefferson Frantz'
    description = 'Todas las noticias del Barça y del mundo del deporte en general'
    timefmt = ' [%d %b, %Y]'
    language = 'es_ES'
    no_stylesheets = True

    feeds          = [(u'Sport', u'http://feeds.feedburner.com/sport/ultimahora')]

    extra_css              = '''
                                h2{font-family: serif; font-size: small; font-weight: bold; color: #000000; text-align: justify}
                                '''

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

    remove_tags        = [
                             dict(name=['object','link','script','ul'])
                            ,dict(name='div', attrs={'id':['scrAdSense','herramientas2','participacion','participacion2','bloque1resultados','bloque2resultados','cont_vinyetesAnt','tinta','noticiasSuperior','cintillopublicidad2']})
                            ,dict(name='p', attrs={'class':['masinformacion','hora']})
                            ,dict(name='a', attrs={'class':["'link'"]})
                            ,dict(name='div', attrs={'class':['addthis_toolbox addthis_default_style','firma','pretitularnoticia']})
                            ,dict(name='form', attrs={'id':['formularioDeBusquedaAvanzada']})
                         ]

    def preprocess_html(self, soup):
            for item in soup.findAll(style=True):
               del item['style']
            return soup


    def postprocess_html(self, soup, first_fetch):
        img = soup.find('img',src='/img/videos/mascaravideo.png')
        if not img is None:
            img.extract()

        return soup


Greetings

Jeff.
jefferson_frantz is offline   Reply With Quote
Advert
Old 11-06-2010, 11:07 AM   #3
cioarcos
Junior Member
cioarcos began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: none
Thank you very much

Thank your for the recipe for the Diario Sport.

Cioarcos
cioarcos is offline   Reply With Quote
Old 11-15-2010, 04:25 PM   #4
cioarcos
Junior Member
cioarcos began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: none
The recipe for Sport don,t go well

Hello.
The recipe for the diary Sport, today don,t go well.
I can only see the index.
Can anyone do a new recipe?
Thank you
cioarcos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BBC Sport limawhiskey Recipes 3 07-24-2011 08:54 AM
ASUS DR-570 e-reader to sport 6-inch OLED color screen DonaldL. News 6 01-18-2010 01:33 PM
Sport pdf or ebook sites bluebells2 Reading Recommendations 0 10-31-2009 07:21 AM
Dunbar, Paul Laurence: The Sport of the Gods. v1, 2 Mar 2008 Madam Broshkina Kindle Books 0 03-02-2008 12:43 AM
Dunbar, Paul Laurence: The Sport of the Gods. v1, 2 Mar 2008 Madam Broshkina BBeB/LRF Books 0 03-02-2008 12:41 AM


All times are GMT -4. The time now is 03:44 AM.


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