python get zip file and extract code example
Example 1: python zip extract directory
import zipfile
archive = zipfile.ZipFile('archive.zip')
for file in archive.namelist():
if file.startswith('foo/'):
archive.extract(file, 'destination_path')
Example 2: how to extract zip file using python
ZipFile.extractall(path=None, members=None, pwd=None)