Skip to content
Discussion options

You must be logged in to vote

Hi @g6k,

I'd start by unzipping the files with Python and then going from there: https://stackoverflow.com/questions/3451111/unzipping-files-in-python

import zipfile
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
    zip_ref.extractall(directory_to_extract_to)

Once you've unzipped the files you could combine them.

And then once you've combined them, you could make a check to see if they are downloaded already before re-downloading them.

You could also try this code example from ChatGPT:

import os
import zipfile

# Create a ZipFile object to work with the zip files
zip_file = zipfile.ZipFile('zip_file_1.zip')

# Extract the contents of the first zip file to a temporary directory
t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants