import zipfile
archive = zipfile.ZipFile('archive.zip')
for file in archive.namelist():
    if file.startswith('foo/'):
        archive.extract(file, 'destination_path')
How to unzip specific folder from a .zip with Python