title: Python: How to find text of first anchor tag using BeautifulSoup
body: <p>I have a HTML structure like this</p>
  
  <pre><code>&lt;p class="title"&gt;
    &lt;a href="abc.com"&gt;
     Story
    &lt;/a&gt; 
    &lt;span class="domain"&gt;
      &lt;a href="xyz.com"&gt;comments&lt;/a&gt;
    &lt;/span&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I want to extract text of first anchor tag, that is <code>Story</code></p>
  
  <p>Here is how I am using <code>Beautifulsoup</code> to extract text from anchor tag</p>
  
  <pre><code>soup = BeautifulSoup(html, 'html.parser')
  soup.prettify()
  for link in soup.find_all(class_='title'):
        print link.findNext('a').text
  </code></pre>
  
  <p>and output:</p>
  
  <pre><code>Story
  
  Comments
  </code></pre>
  
  <p>But I want to extract only text of first anchor tag, that is <code>Story</code>.
  How can I do this using BeautifulSoup in python?</p>