I am using python2.7.6, urllib2, and BeautifulSoup
to extract html from a website and store in a variable.
How can I show just the html contents of a div
with an id by using beautifulsoup?
<div id='theDiv'>
<p>div content</p>
<p>div stuff</p>
<p>div thing</p>
would be
<p>div content</p>
<p>div stuff</p>
<p>div thing</p>