This repository contains a Google Colab script for downloading a ZIP file, extracting its contents, and moving them to a specified directory in Google Drive.
- Open the Notebook in Google Colab: Upload the
.ipynb
file to Google Colab or open it directly if it's in your Google Drive.
-
Set the Variables: At the top of the script, set the following variables:
DOWNLOAD_LINK
: URL of the file you want to download.ZIP_FILE_NAME
: What you want to name the downloaded ZIP file.TARGET_DIR
: Path to the directory in Google Drive where you want to store the extracted files.
-
Run the Script: Execute the cells in the Colab notebook. It will:
- Mount your Google Drive.
- Download the ZIP file from the provided link.
- Extract the contents to a temporary directory.
- Move the contents to the specified target directory in Google Drive.
- Clean up the temporary files.
- Ensure you have the necessary permissions for the Google Drive folder you're accessing.
- The script includes clean-up commands to remove temporary files. If you need to keep the ZIP file or the extracted contents in the Colab environment, you can comment out or remove the clean-up commands.
Feel free to fork this repository, make changes, and submit pull requests if you have suggestions or improvements.
This project is licensed under the MIT License.