Thread
:
Trouble removing span class
View Single Post
03-18-2011, 02:18 PM
#
1
mufc
Connoisseur
Posts: 99
Karma: 170
Join Date: Nov 2010
Location: Airdrie Alberta
Device: Sony 650
Trouble removing span class
This is in my recipe
remove_tags = [dict(name='span', attrs={'class':'articledate'})]
Below is the relevant piece of html of one of the pages. Why does this not remove the dates ?
Thanks
Spoiler
:
<ul class="calibrefeedlist"><li id="article_0" class="calibrerescale1">
<a href="article_0/index_u15.html" class="article">Almond Shortbread</a><span class="articledate"> [Sat, 04 Dec 11:12]</span>
</li>
<li id="article_1" class="calibrerescale1">
<a href="article_1/index_u31.html" class="article">Heart Healthy Chocolate Chip Cookies</a><span class="articledate"> [Sat, 04 Dec 11:12]</span>
</li>
<li id="article_2" class="calibrerescale1">
<a href="article_2/index_u12.html" class="article">Oven-Baked Chocolate Chip Cookies</a><span class="articledate"> [Thu, 02 Dec 11:12]</span>
</li>
<li id="article_3" class="calibrerescale1">
<a href="article_3/index_u35.html" class="article">cookies 4</a><span class="articledate"> [Thu, 02 Dec 11:12]</span>
</li>
<li id="article_4" class="calibrerescale1">
<a href="article_4/index_u28.html" class="article">cookies 5</a><span class="articledate"> [Thu, 02 Dec 11:12]</span>
</li>
</ul>
mufc
View Public Profile
Find More Posts by mufc
Track Posts by mufc via RSS