title: Python - Beautiful Soup: Extract "strings" from tag in right order
body: <p>I'm searching for a beautiful soup command combination to extract "strings" from a-tag string in the right order.</p>
  
  <p>Source 1:
  <code>&lt;a href="target" title="title"&gt;a-string &lt;img alt="img-alt"&gt; &lt;span&gt;span-string&lt;/span&gt;&lt;/a&gt;</code></p>
  
  <p>Target 1:
  "a-string img-alt span-string"</p>
  
  <p>Source 2:
  <code>&lt;a href="target" title="title"&gt;&lt;span&gt;span&lt;/span&gt; string &lt;img alt="alt"&gt;&lt;/a&gt;</code></p>
  
  <p>Target 2:
  "span-string a-string img-alt"</p>
  
  <p>It's easy to get the child elements via "find_all()" and the text via "get_text()".</p>
  
  <p>How to get the right order of the different "strings"? Or to sequentially parse all information in the a-string?</p>