05-07-2012, 07:26 AM | #1 |
Groupie
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) |
05-11-2012, 08:54 AM | #2 |
Addict
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. |
Advert | |
|
Thread Tools | Search this Thread |
|
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 |