![]() |
#1 |
Enthusiast
![]() 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'})] 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 |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
|
J reply to myself
Code:
keep_only_tags = [dict(id=['content', 'heading'])] |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |