title: How do I use beautiful soup to find tables under p tag with a certain text
body: <p>I'm new to beautifulsoup and I'm trying to find some table under a certain p tag with text "subclass" inside </p>
  
  <p>Here is the HTML example </p>
  
  <pre><code>&lt;p&gt;&lt;b&gt;subclass&lt;/b&gt;&lt;/p&gt;
  &lt;table&gt;...&lt;table&gt;
  &lt;p&gt;&lt;b&gt;frnekr&lt;/b&gt;&lt;/p&gt;
  &lt;table&gt;...&lt;table&gt;
  </code></pre>
  
  <p>I only want to grab the table under the p tag with text -> subclass. Those p tags doesn't have classes unfortunately. </p>