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 05-07-2012, 07:26 AM   #1
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 154
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
How can I exclude all the images from NYT?

I only found the function to include only the first image. But I want all the images to be excluded.

(PS:Anyone interested in helping me out on this? https://www.mobileread.com/forums/sho...d.php?t=177425)
Steven630 is offline   Reply With Quote
Old 05-11-2012, 08:54 AM   #2
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
you basically need to find what tags in the html source code relate to images.

read the calibre help

http://manual.calibre-ebook.com/news_recipe.html

and try the remove tags as in the example

remove_tags = []¶
List of tags to be removed. Specified tags are removed from downloaded HTML. A tag is specified as a dictionary of the form:

{
name : 'tag name', #e.g. 'div'
attrs : a dictionary, #e.g. {class: 'advertisment'}
}All keys are optional. For a full explanantion of the search criteria, see Beautiful Soup A common example:

remove_tags = [dict(name='div', attrs={'class':'advert'})]
This will remove all <div class=”advert”> tags and all their children from the downloaded HTML.
scissors is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude books w/certain tag by default? ander111 Library Management 6 01-13-2014 03:15 PM
Request - How to exclude images from news fetched? yinsyuedu Recipes 1 11-01-2011 07:03 PM
Exclude some parts from build MartinJT Calibre 4 09-15-2011 08:39 AM
Exclude files from indexing? HansTWN iRex 8 04-20-2010 05:02 AM
MobileRead improvements: Exclude forums, et al. Alexander Turcic Announcements 20 05-09-2008 06:33 PM


All times are GMT -4. The time now is 04:13 AM.


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