Horje

Python - Unzipping Files
Start
  Using Python ZipFile.extractall() to decompress a ZIP file
file_unzip = 'filename.zip'
unzip = zipfile.ZipFile(file_unzip, 'r')
unzip.extractall()
unzip.close()

  Using Python TarFile.extractall() to decompress a tarball
file_untar = 'filename.tar.gz'
untar = tarfile.TarFile(file_untar)
untar.extractall()
untar.close()


Read Article
https://develop.horje.com/learn/1434/reference