title: how to find some text in span class using bs4
body: <p>I am trying to get all the names on the html page that is in each span tag, for example:</p>
  
  <pre><code>&lt;span class="mn-person-info__name Sans-17px-black-85%-semibold-dense"&gt;
      Alex Jacob
    &lt;/span&gt;
  &lt;span class="mn-person-info__name Sans-17px-black-85%-semibold-dense"&gt;
      Jim Bo
    &lt;/span&gt;
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>names=[]  
  
  spans = soup.find_all('span', attrs={'class':'mn-person-info__name'})
  
  for span in spans:
       names.append(span.string)
  </code></pre>
  
  <p>And then trying to get all the names and then store them in a list.</p>