View Single Post
Old 06-05-2014, 07:59 PM   #1
vinny3777
Junior Member
vinny3777 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2014
Device: Kindle Paperwhite 2nd Generation
Remove captions from news feed

I am trying to remove captions from my news feed in calibre. how do i do this?

Code:
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1402005755(BasicNewsRecipe):
    title          = u'NPR News'
    __author__ = 'Vincent DiPerna'
    oldest_article = 7
    max_articles_per_feed = 20
    remove_empty_feeds = True

    auto_cleanup = True
    auto_cleanup_keep = '//div[@class="thumbnail"]'
   

    feeds          = [

              (u'US News'             , u'http://www.npr.org/rss/rss.php?id=1003'                           )
             ,(u'World News'           , u'http://www.npr.org/rss/rss.php?id=1004'                     )
             ,(u'Business'             , u'http://www.npr.org/rss/rss.php?id=1006'        )
             ,(u'Technology'    , u'http://www.npr.org/rss/rss.php?id=1019'                 )
             ,(u'Sports'             , u'http://www.npr.org/rss/rss.php?id=1055'                       )
             ,(u'Space'            , u'http://www.npr.org/rss/rss.php?id=1026'                 )
             ,(u'Environment'          , u'http://www.npr.org/rss/rss.php?id=1025'       )
             ,(u'Education'             , u'http://www.npr.org/rss/rss.php?id=1013'              )
           
]
vinny3777 is offline   Reply With Quote