I have some HTML that looks like this:
Title //a random amount of p/uls or tagless text Next Title
This is the clear BeautifulSoup way, when the second h1 tag is a sibling of the first:
h1
html = u"" for tag in soup.find("h1").next_siblings: if tag.name == "h1": break else: html += unicode(tag)