title: Python: Extracting specific files with pattern from tar.gz without extracting the complete file
body: <p>I want to extract all files with the pattern <code>*_sl_H*</code> from many tar.gz files, without extracting all files from the archives.</p>
  
  <p>I found these lines, but it is not possible to work with wildcards (<a href="https://pymotw.com/2/tarfile/" rel="noreferrer">https://pymotw.com/2/tarfile/</a>):</p>
  
  <pre><code>import tarfile
  import os
  
  os.mkdir('outdir')
  t = tarfile.open('example.tar', 'r')
  t.extractall('outdir', members=[t.getmember('README.txt')])
  print os.listdir('outdir')
  </code></pre>
  
  <p>Does someone have an idea?
  Many thanks in advance.</p>