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 11-08-2010, 06:25 PM   #1
bmsleight
Junior Member
bmsleight began at the beginning.
 
Posts: 8
Karma: 12
Join Date: Aug 2010
Device: Kindle 3
Hola.com Recipe - Solved

Hi All,

Sharing a Hola.com recipe I made for someone else...

Spoiler:
Code:
#!/usr/bin/env  python
__license__   = 'GPL v3'
__copyright__ = '2010, Brendan Sleight <bms.calibre at barwap.com>'
'''
hola.com
'''

from calibre.web.feeds.news import BasicNewsRecipe

class Hackaday(BasicNewsRecipe):
    title                 = u'Hola'
    __author__            = 'bmsleight'
    description           = 'diario de actualidad, moda y belleza.'
    oldest_article        = 10
    max_articles_per_feed = 100
    no_stylesheets        = True
    language              = 'es'

    use_embedded_content  = False

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

    feeds               = [
                         (u'Famosos'        , u'http://www.hola.com/famosos/rss.xml'           ),
                         (u'Realeza'        , u'http://www.hola.com/realeza/rss.xml'           ),
                         (u'Cine'           , u'http://www.hola.com/cine/rss.xml'              ),
                         (u'Música'         , u'http://www.hola.com/musica/rss.xml'            ),
                         (u'Moda y modelos' , u'http://www.hola.com/moda/portada/rss.xml'      ),
                         (u'Belleza y salud', u'http://www.hola.com/belleza/portada/rss.xml'   ),
                         (u'Niños'          , u'http://www.hola.com/ninos/rss.xml'             ),
                         (u'Todas las noticias', u'http://int2.hola.com/app/feeds/rss_hola.php'),
                         ]

    def get_article_url(self, article):
        url = article.get('guid', None)
        return url


Enjoy,
Brendan
bmsleight 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
Recipe works when mocked up as Python file, fails when converted to Recipe ode Recipes 7 09-04-2011 05:57 AM
HOLA -DELIZA Introduce Yourself 7 05-25-2010 01:58 AM
Hola!!! Ben's mommy Introduce Yourself 7 02-08-2010 12:52 PM
Hola! jackiectmo Introduce Yourself 3 01-06-2010 10:27 PM
Hola hype50 Introduce Yourself 0 09-06-2008 07:44 AM


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


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