title: How can I extract the date part from this text in Beautiful Soup?
body: <p>the text is : </p>
  
  <p><code>&lt;div class="fi-mu-list today" data-matchesdate="20180619"&gt;</code></p>
  
  <p>I want to extract <code>20180619</code> from this.</p>
  
  <p>I tried :
  1)</p>
  
  <p><code>mat  = soup.select("div.fi-mu-list today &gt; span.fi-mu-list__head__date")
  print(mat["data-matchesdate"])</code></p>
  
  <p>output : <code>TypeError: list indices must be integers or slices, not str</code></p>
  
  <p>2)
  also tried <code>print(mat)</code></p>
  
  <p>output : <code>[]</code></p>