I have a zip archive: my_zip.zip. Inside it is one txt file, the name of which I do not know. I was taking a look at Python\'s zipfile
import zipfile
zip = zipfile.ZipFile('filename.zip')
# available files in the container
print (zip.namelist())
# extract a specific file from zip
f = zip.open("file_inside_zip.txt")
content = f.read()
# save the extraced file
f = open('file_inside_zip.extracted.txt', 'wb')
f.write(content)
f.close()