I have a html file with the below classes but I need to extract only the <p> tags having most in number than any other classes.
Like <div class="text"> as 18 <p> tags and <div class="another-text"> has 3 <p> tags and <div class="another-another-text"> has 2 <p> tags. I need to extract the <p> tags in <div class="text"> class.
<body>
<div class="text">
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
<p>...</p>
</div>
<div class="another-text">
<p>...</p>
<p>...</p>
<p>...</p>
</div>
<div class="another-another-text">
<p>...</p>
<p>...</p>
</div>
</body>