I spent some time on the code, and I'm just not seeing how to do this. It tags the parent tag with <p> tags, which I get, but my problem (I think) is that I'm grabbing spans and not a div's. These just kind of sit out there inside the body, with no parent tag around them.
Is there a way to put what I grab (for example, dict(name='img', attrs={'id':'img-holder'})) and put a tag around that?
<Newtag><img id="img-holder" src="images/img1.jpg" alt=" " class="calibre12"></Newtag>
I think if I could do that, I could add <p> tags or anything around the content.
|