title: Parse HTML with Beautiful Soup. Return text from specific tag
body: <p>I can parse the full argument of a html Tag addressing it over a unix shell script like this:</p>
  
  <pre><code># !/usr/bin/python3
  
  # import the module
  from bs4 import BeautifulSoup
  
  # define your object
  soup = BeautifulSoup(open("test.html"))
  
  # get the tag
  print(soup(itemprop="name"))
  </code></pre>
  
  <p>where <code>itemprop="name"</code> uniquely identifies the required tag. </p>
  
  <p>the output is something like </p>
  
  <pre><code>[&lt;span itemprop="name"&gt;
                      Blabla &amp;amp; Bloblo&lt;/span&gt;]
  </code></pre>
  
  <p>Now I would like to return only the <code>Bla Bla Blo Blo</code> part.</p>
  
  <p>my attempt was to do:</p>
  
  <pre><code>print(soup(itemprop="name").getText())
  </code></pre>
  
  <p>but I get an error message like <code>AttributeError: 'ResultSet' object has no attribute 'getText'</code></p>
  
  <p>it worked experimentally in other contexts such as </p>
  
  <pre><code>print(soup.find('span').getText())
  </code></pre>
  
  <p>So what am I getting wrong?</p>