View Single Post
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, 154 views)

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