View Single Post
Old 03-25-2011, 09:23 PM   #10
oneillpt
Connoisseur
oneillpt began at the beginning.
 
Posts: 63
Karma: 46
Join Date: Feb 2011
Device: Kindle 3 (cracked screen!); PW1; Oasis
Quote:
Originally Posted by Sciamano View Post
Thanks!! It worked! Karma+!
Any chance you can help me with removing the rss links and permalink after the date? That would be awesome!
This works:

Code:
class AdvancedUserRecipe1300997108(BasicNewsRecipe):
    title          = u'Inter'
    encoding  = 'ISO-8859-15'
    oldest_article = 7
    max_articles_per_feed = 100

    feeds          = [(u'Inter News', u'http://veleno.inter.it/aas/rss/index_full_it.xml')]
    remove_tags    = [dict(name='div', attrs={'class':'piccolowww'})]
    remove_tags = [dict(name='span', attrs={'style':'padding-left:120px;'})]
but runs the risk of failure if style="padding-left:120px;" is used with a <span> tag elsewhere in some future page, rather than as now just surrounding these unwanted items.
oneillpt is offline   Reply With Quote