from zipfile import ZipFile import zipfile myzip = ZipFile('test.zip') myzip.extract(member='Roughwork/pretify.html',pwd="paswordhere")