title: Beautiful Soup - Loop Through Navigable String
body: <p>I'm trying to loop through a NavigableString and grab all the content within the 'a' tags.  I did a </p>
  
  <pre><code>home= items.findAll('div', class_="dlineups-half") 
  </code></pre>
  
  <p>and it gets me the NaviableString below.  I can get the first piece of data via home.a.contents which gives me Joe Bendik, but whenever I run any type of loop to get all the .a.contents I get a 'NavigableString' object has no attribute.  My question is how do I go about looping through a NavigableString and grabbing all the a.contents.</p>
  
  <pre><code>&lt;div class="dlineups-half"&gt;&lt;div class="dlineups-vplayer"&gt;&lt;div
  class="dlineups-pos"&gt;G&lt;/div&gt;&lt;div&gt;&lt;a href="/soccer/player.htm?id=18688"
    title="Joe Bendik"&gt;Joe Bendik&lt;/a&gt;&lt;/div&gt;&lt;div class="dlineups-vplayer"&gt; 
  &lt;div class="dlineups-pos"&gt;D&lt;/div&gt;&lt;div&gt;&lt;a href="/soccer/player.htm?
  id=9368"title="David Mateos"&gt;David Mateos&lt;/a&gt;...
  </code></pre>