I am trying to get all the <p> that come after <h2>.
I know how to do this in case I have only one <p> after <h2>, but not in case I have multiple <p>.
Here's an example of the webpage:
<h2>Heading Text1</h2>
<p>Paragraph1</p>
<p>Paragraph2</p>
<h2>Heading Text2</h2>
<p>Paragraph3</p>
<p>Paragraph4</p>
<p>Paragraph5</p>
....
I need to get all paragraphs in relation to their headings, e.g. Paragraphs 1 and 2 that are related to Heading Text1.
I'm trying that using BeautifulSoup with Python, been trying for days, also googling.
How can this be done?