title: BeautifulSoup4 Parsing inside tag hierarchy
body: <p>I'm having trouble understanding how the bs4 parsing works to pull out information that is several levels down in a tag hierarchy.</p>
  
  <p>Here is an example of what I'm trying to parse (from <a href="http://www.j-archive.com/showgame.php?game_id=50" rel="nofollow noreferrer">www.j-archive.com/showgame.php?game_id=50</a>):</p>
  
  <pre><code>...
  &lt;table&gt;
  &lt;tr&gt;
    &lt;td&gt;
      &lt;div onmouseover="toggle('clue_DJ_1_1', 'clue_DJ_1_1_stuck', '&amp;lt;em class=&amp;quot;correct_response&amp;quot;&amp;gt;&amp;lt;i&amp;gt;The Red Badge of Courage&amp;lt;/i&amp;gt;&amp;lt;/em&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;table width=&amp;quot;100%&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;right&amp;quot;&amp;gt;Kelley&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;')" onmouseout="toggle('clue_DJ_1_1', 'clue_DJ_1_1_stuck', 'This classic by Stephen Crane is subtitled &amp;quot;An Episode of the American Civil War&amp;quot;')" onclick="togglestick('clue_DJ_1_1_stuck')"&gt;
  </code></pre>
  
  <p>I specifically want to get out the words "The Red Badge of Courage", so that's within <code>&lt;table&gt;</code>, <code>&lt;tr&gt;</code>, <code>&lt;td&gt;</code>, and <code>&lt;div&gt;</code>, and then appears to be part of the attribute <code>onmouseover</code>.</p>
  
  <p>I can pull out all <code>onmouseover</code> statements with:</p>
  
  <pre><code>for tag in soup.findAll(onmouseover=True):
      print(tag['onmouseover'])
  </code></pre>
  
  <p>But I don't know hot to parse inside that ouput.</p>
  
  <p>Thanks in advance.</p>