title: Group texts of an HTML tag in list of tuples
body: <p>I am using <code>BeautifulSoup</code> to extract text of a tag. When I print, I get these three blocks, each belongs to a tag.</p>
  <pre class="lang-py prettyprint-override"><code>&lt;class 'str'&gt;
  &lt;class 'str'&gt;
  &lt;class 'str'&gt;
  
  
  &lt;class 'str'&gt;
  &lt;class 'str'&gt;
  &lt;class 'str'&gt;
  
  &lt;class 'str'&gt;
  &lt;class 'str'&gt;
  </code></pre>
  <p>That tag returns at least 2 strings which if I append them to a <code>list</code>, will look like this:</p>
  <pre class="lang-py prettyprint-override"><code>[&lt;class 'str'&gt;, 
   &lt;class 'str'&gt;, 
   &lt;class 'str'&gt;, 
   &lt;class 'str'&gt;, 
   &lt;class 'str'&gt;, 
   &lt;class 'str'&gt;, 
   &lt;class 'str'&gt;, 
   &lt;class 'str'&gt;]
  </code></pre>
  <p>Instead, I want to have each block be in a tuple where only two of the strings are needed. Like this:</p>
  <pre class="lang-py prettyprint-override"><code>[(&lt;class 'str'&gt;, &lt;class 'str'&gt;), 
   (&lt;class 'str'&gt;, &lt;class 'str'&gt;), 
   (&lt;class 'str'&gt;, &lt;class 'str'&gt;)]
  </code></pre>
  <p>I tried the following, but I struggled:</p>
  <pre class="lang-py prettyprint-override"><code>e = []
  for element in soup.select('div.ph0.pv2.artdeco-card.mb2 li'):
      names = element.select('div.entity-result__content.entity-result__divider.pt3.pb3.t-12.t-black--light')[0].select('a')
      if len(names) &gt; 1:  ## filter those tags &lt;a&gt;&lt;/a&gt; with extra information     
          for c in names:
              print(c.get_text(separator=&quot; &quot;, strip=True))
  </code></pre>
  <hr />
  <p><strong>Update:</strong></p>
  <p>Here, I give a real example.
  The following is the output of the above code snippet.</p>
  <pre><code>LexisNexis
  3 people from your school were hired here
  82 jobs
  
  AbacusNext
  1 person from your school was hired here
  24 jobs
  
  Aderant
  38 jobs
  </code></pre>
  <p>The expected output I am trying to solve is something like:</p>
  <pre class="lang-py prettyprint-override"><code>[('LexisNexis', '82'), 
   ('AbacusNext', '24'), 
   ('Aderant', '38')]
  </code></pre>
  <p>The HTML page I am working on can be publicly found <a href="https://jsfiddle.net/gkj590vt/" rel="nofollow noreferrer">here</a>.</p>
  <p>To separate numbers from text, I used</p>
  <pre class="lang-py prettyprint-override"><code>import re
  regex = re.compile('[^0-9]')
  regex.sub('', &lt;not sure what should be here based on my desired output&gt;)
  </code></pre>