Skip to content

Instantly share code, notes, and snippets.

@jarkkojs
Created December 1, 2021 14:22
Show Gist options
  • Save jarkkojs/d611e14efaab7b527d9e80d58b0b8306 to your computer and use it in GitHub Desktop.
Save jarkkojs/d611e14efaab7b527d9e80d58b0b8306 to your computer and use it in GitHub Desktop.
import sys
from zipfile import ZipFile
with ZipFile(sys.argv[1], 'r') as zip_file:
filename_list = zip_file.namelist()
for filename in filename_list:
print(filename)
if filename.endswith('.mp4'):
zip_file.extract(filename, sys.argv[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment