To unzip a zip file in python you can use the following snippet.
Sample Python
import zipfile myZip = zipfile.ZipFile('myArchive.zip','r') for zipContentFile in myZip.namelist(): data = myZip.read(zipContentFile) file = open(zipContentFile, 'w+b') file.write(data) file.close()
for more informations see Work with ZIP archives¶
RT @CodeSnippetsNET: How to unzip a zip file in #python http://t.co/VK44MRCU5a #programming #code #coding #dev
RT @CodeSnippetsNET: How to unzip a zip file in #python http://t.co/VK44MRCU5a #programming #code #coding #dev