View Single Post
Old 08-21-2010, 05:22 PM   #2487
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
If one wanted to remove only the Comment portion of the following
Code:
<p id="BlogDate" class="calibre9">Posted By <u class="calibre10">admin</u> On August 21, 2010 @ 10:15 am In <u class="calibre10">Uncategorized</u> | <u class="calibre10"><a href="#comments_controls" class="calibre6">No Comments</a></u></p>
So I would get something like
Posted By Jim Jones On August 21,2010 @ 10:15am In Uncategorized
again leaving off the comments_controls. How would this be done.

I thought maybe using remove_tags() but I'm not certain what dict and attrb I would use. I tried with no luck the following:
Code:
remove_tags = [dict(name='a', attrs={'href':'#comment controls'})]
thanks.

i attached the recipe i have so far. it works just would like to remove the comment control thing...
Attached Files
File Type: rar nar.rar (660 Bytes, 206 views)

Last edited by TonytheBookworm; 08-22-2010 at 12:31 AM. Reason: added working version of http://www.notalwaysright.com
TonytheBookworm is offline