I have some HTML that looks like this:
Title
//a random amount of p/uls or tagless text
Next Title
Interesting question. There is no way you can use just DOM to select it. You'll have to loop trough all elements preceding the first h1 (including) and put them into intro = str(intro), then get everything up to the 2nd h1 into chapter1. Than remove the intro from the chapter1 using
chapter = chapter1.replace(intro, '')