title: BS4 + Python3: unable to crawl tree: 'NavigableString' object has no attribute 'has_attr'
body: <p><BR>
  I'm new to Python (I only know powershell) and I'm trying to learn Web Crawling with BS4+Python3.</p>
  
  <p>Here's a simple exercise i was practicing with:</p>
  
  <pre><code>&lt;h1 class="entry-title"&gt;
  &lt;a href="test1.html"&gt;test1&lt;/a&gt;&lt;/h1&gt;
  &lt;h1 class="entry-title"&gt;
  &lt;a href="test2.html" rel="bookmark"&gt;test2&lt;/a&gt;&lt;/h1&gt;
  </code></pre>
  
  <p>What I want to do is get ONLY  details (href and .string) with attributes "rel"</p>
  
  <p>Heres my code</p>
  
  <p></p>
  
  <pre><code>for h1_Tag in soup.find_all(("h1", { "class" : "entry-title" })):
      for a_Tag in h1_Tag.contents:
          if a_Tag.has_attr('rel'):
             print (a_Tag)
  </code></pre>
  
  <p></p>
  
  <p>but i'm getting:
  AttributeError: 'NavigableString' object has no attribute 'has_attr'</p>
  
  <p>What am I doing wrong?
  Any help is appreciated.</p>
  
  <p>Thanks!</p>