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-17-2011, 04:56 PM   #1
xXxXxXxXxXx
Enthusiast
xXxXxXxXxXx began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
Question

J know that this expression remove content from article

Code:
remove_tags = [dict(name='div', attrs={'class':'printTools'})]
But this way is very time consuming...

J want to know how "print" only selected div and remove other

in other words, J want to know expression which do opposite to this one above
xXxXxXxXxXx is offline   Reply With Quote
Old 05-17-2011, 04:59 PM   #2
xXxXxXxXxXx
Enthusiast
xXxXxXxXxXx began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
J reply to myself

Code:
keep_only_tags = [dict(id=['content', 'heading'])]
xXxXxXxXxXx is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello to All (and a question) Shadowman123 Calibre 4 09-28-2010 12:09 PM
Classic Few Nook Question and Question on Nook 3G vs WiFi blackonblack Barnes & Noble NOOK 4 07-02-2010 02:07 AM
Almost there - one more question? Sydney's Mom Calibre 4 12-10-2009 02:34 PM
Looking for another reader question and PRS-600 question lilpretender Which one should I buy? 9 10-24-2009 04:02 AM


All times are GMT -4. The time now is 08:39 AM.


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