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 07-28-2011, 06:05 AM   #1
pabloaldama
Junior Member
pabloaldama began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2011
Device: kindle 3
Caros Amigos recipe

I build the caros amigos recipe, here it is.

Eu fiz o recipe para Caros Amigos.


Code:
__copyright__ = '2011, Pablo Aldama <pabloaldama at gmail.com>'
class AdvancedUserRecipe1311839910(BasicNewsRecipe):
    title          = u'Caros Amigos'
    oldest_article = 20
    max_articles_per_feed = 100

    feeds          = [(u'Caros Amigos', u'http://carosamigos.terra.com.br/index/index.php?format=feed&type=rss')]
    keep_only_tags    = [dict(name='div', attrs={'class':['blog']})
                        ,dict(name='div', attrs={'class':['blogcontent']})
                        ]
    remove_tags    = [dict(name='div', attrs={'class':'addtoany'})]
Attached Files
File Type: zip Caros Amigos_1000.recipe.zip (444 Bytes, 176 views)

Last edited by pabloaldama; 08-03-2011 at 06:35 AM.
pabloaldama is offline   Reply With Quote
Old 04-09-2012, 01:36 PM   #2
pabloaldama
Junior Member
pabloaldama began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2011
Device: kindle 3
Updated recipe:

O RSS mudou, o novo é http://carosamigos.terra.com.br/inde...=feed&type=rss

então o novo code fica:
Code:
__copyright__ = '2011, Pablo Aldama <pabloaldama at gmail.com>'
class AdvancedUserRecipe1311839910(BasicNewsRecipe):
    title          = u'Caros Amigos'
    oldest_article = 20
    max_articles_per_feed = 100

    feeds          = [(u'Caros Amigos', u'http://carosamigos.terra.com.br/index2/index.php?format=feed&type=rss')]
    keep_only_tags    = [dict(name='div', attrs={'class':['blog']})
                        ,dict(name='div', attrs={'class':['blogcontent']})
                        ]
    remove_tags    = [dict(name='div', attrs={'class':'addtoany'})]
Attached Files
File Type: zip Caros Amigos.zip (496 Bytes, 153 views)

Last edited by pabloaldama; 04-09-2012 at 01:39 PM.
pabloaldama is offline   Reply With Quote
Advert
Reply

Tags
caros amigos, recipe

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 04:57 AM
New Recipe UtahJames Recipes 3 04-18-2011 08:02 PM
Recipe Please gagw Recipes 0 01-24-2011 07:24 AM
recipe please Torx Recipes 0 01-22-2011 12:18 PM
Recipe Help lrain5 Calibre 3 05-09-2010 10:42 PM


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


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