Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
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
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove unwanted news feed MacNala Recipes 2 07-28-2013 04:50 AM
Wrong rendering of captions in "Le Devoir" news feed PoP Recipes 2 01-29-2011 02:29 PM
how to remove already pulled feed items? MarcDK Calibre 2 11-12-2010 09:30 AM
how to remove Table of Contents at the end of news feed TonytheBookworm Calibre 4 09-21-2010 10:19 AM
How to remove dates from news feed vega07 Calibre 11 07-26-2010 06:25 PM


All times are GMT -4. The time now is 02:23 PM.


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