# Unzip Zipped Google drive files using colab

**URL:** <https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355>\
**Category:** Tools & Scripts\
**Tags:** tips-tricks\
**Created:** [March 14, 2020, 12:58pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355 "2020-03-14T12:58:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 14, 2020, 12:58pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/1 "2020-03-14T12:58:29Z")

</div>

Have you ever thought of unzipping a zip-file stored in Google Drive directly to Google Drive? I found one trick to do this using Google Colab.

> Open the colab script from **[HERE](https://up-to-down.net/81269/unzipweb)**

Open Runtime and change runtime type to GPU ( be sure that you are using Python 3).

 ![image](https://onehack.st/uploads/default/original/3X/a/1/a142ffb9b613ba758fe9c3660ee0b67b6c8a689e.png)

after this you look at the right and press connect, choose hosted runtime

 ![image](https://onehack.st/uploads/default/original/3X/0/c/0c2c8cf20df0dbceb4afd9b888afae7abee2c534.png)

wait until ok

 ![image](https://onehack.st/uploads/default/original/3X/5/b/5b28ce2916142a4ee232dd36b6b77c049bfb3d73.png)

Go to left side bar and choose Files in menu and MOUNT DRIVE  
Execute that script and you will get the link to auth your account. Click the link, select your account that you want to use as a google drive storage. Allow the permission and you will get the code to auth your Gdrive. Copy the code, back to your Notebook, paste the code in the box under the sentence ‘Enter your authorization code:’, then click enter.

 ![image](https://onehack.st/uploads/default/original/3X/6/b/6bd220092408ed6f2ae939d554db7c026e92ffdf.png)

If is ok you will see you will see your drive in the sidebar by expand ‘drive’ folder

Step 1:

> Copy path of the zipped file

 ![Screenshot (10)](https://onehack.st/uploads/default/original/3X/8/0/80d0edbfc79ce20b4144de9b7fdd5b28f327342b.png)

Step2:

> Select the type of zipped file. ie. zip, rar, 7z

 ![Screenshot (11)](https://onehack.st/uploads/default/original/3X/8/f/8f20b527fb22d8b7c325828f4c24f779003d40e4.png)

Step3:

> Put zipped file path in source\_path.  
> Put destination folder where you want to unzip it in destination\_folder  
> Put the zip file password if it has any or type some random text in password .

 ![Screenshot (12)](https://onehack.st/uploads/default/original/3X/0/4/046b4241aef0f0b8ff5ee6e281d336c5b2034f45.png)

---

<div class="post-metadata">

**Author:** ![macmkboy](https://onehack.st/user_avatar/onehack.st/macmkboy/32/16918_2.png) [@macmkboy](https://onehack.st/u/macmkboy)\
**Post date:** [March 14, 2020, 4:19pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/2 "2020-03-14T16:19:39Z")

</div>

How about if I want to zip a folder for easy download

---

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 14, 2020, 5:21pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/3 "2020-03-14T17:21:27Z")

</div>

Download the .ipynb file from **[HERE](https://link-to.net/81269/zip)** and open it on colab.  
You can zip and unzip the files with this script.

---

<div class="post-metadata">

**Author:** ![macmkboy](https://onehack.st/user_avatar/onehack.st/macmkboy/32/16918_2.png) [@macmkboy](https://onehack.st/u/macmkboy)\
**Post date:** [March 14, 2020, 5:23pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/4 "2020-03-14T17:23:42Z")

</div>

Thanks bro

---

<div class="post-metadata">

**Author:** ![rawn7702](https://onehack.st/user_avatar/onehack.st/rawn7702/32/104678_2.png) [@rawn7702](https://onehack.st/u/rawn7702)\
**Post date:** [March 14, 2020, 5:25pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/5 "2020-03-14T17:25:14Z")

</div>

How to do this for zipped files in a bulk?

---

<div class="post-metadata">

**Author:** ![XtremeZ](https://onehack.st/user_avatar/onehack.st/xtremez/32/31922_2.png) [@XtremeZ](https://onehack.st/u/XtremeZ)\
**Post date:** [March 14, 2020, 8:59pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/6 "2020-03-14T20:59:34Z")

</div>

How do you get 358 GB, i’m getting 107 GB in TPU & 68 GB in GPU, TELL ME WHAT TO DO TO GET 358 GB

---

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 15, 2020, 1:47am UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/7 "2020-03-15T01:47:22Z")

</div>

It’s a long time ago screenshot. Now google has reduced its storage.

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 26, 2020, 4:32pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/8 "2020-06-26T16:32:11Z")

</div>

I have two questions here, plz someone help to achieve it.

1. Can i zip multiple folders/sub-folders with single command or script??

2. Can i zip or rar large files into multiple parts?

---

<div class="post-metadata">

**Author:** ![its\_free\_time](https://onehack.st/user_avatar/onehack.st/its_free_time/32/43846_2.png) [@its\_free\_time](https://onehack.st/u/its_free_time)\
**Post date:** [July 1, 2020, 6:43pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/9 "2020-07-01T18:43:03Z")

</div>

yes, its easy

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [July 1, 2020, 7:02pm UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/10 "2020-07-01T19:02:20Z")

</div>

how?  
plz explain

---

<div class="post-metadata">

**Author:** ![Ravi\_Khatri](https://onehack.st/user_avatar/onehack.st/ravi_khatri/32/19988_2.png) [@Ravi\_Khatri](https://onehack.st/u/Ravi_Khatri)\
**Post date:** [July 2, 2020, 2:10am UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/11 "2020-07-02T02:10:35Z")

</div>

Zipped link is not working, please update the link

---

<div class="post-metadata">

**Author:** ![its\_free\_time](https://onehack.st/user_avatar/onehack.st/its_free_time/32/43846_2.png) [@its\_free\_time](https://onehack.st/u/its_free_time)\
**Post date:** [July 2, 2020, 3:31am UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/12 "2020-07-02T03:31:48Z")

</div>

> [@ZIPPING & UNZIPPING g-drive file in 3 steps using google colab](https://onehack.st/t/zipping-unzipping-g-drive-file-in-3-steps-using-google-colab/94785):
>
> Hi guys blush I made a Video Tutorial for ZIPPING & UNZIPPING g-drive file Via Colab in just 3 steps. Points you need to know. don’t use “zip” as a file name don’t use spaces in folder/file name Video tutorial: [Mega](https://mega.nz/file/GeR3VSrY#1ii24X-YaJ2ZHukl96KQXkM2F3ho3f9I--dTM9zTITA) or [G-drive](https://drive.google.com/file/d/1scgw_7J8wCOZxHjerzQOXdLBA_bZCfF3/view?usp=sharing) script: [mega](https://mega.nz/file/qDgDxIiJ#B40hR0nlJj8X015wp5f1w1mARhLkNOXnCjtIPJyczxA) or [Gdrive](https://drive.google.com/file/d/1-0SDyB3XotrFAnrxSUoXpCGoHZK_50AY/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![akashi\_sejuro](https://onehack.st/user_avatar/onehack.st/akashi_sejuro/32/45089_2.png) [@akashi\_sejuro](https://onehack.st/u/akashi_sejuro)\
**Post date:** [July 2, 2020, 7:34am UTC](https://onehack.st/t/unzip-zipped-google-drive-files-using-colab/73355/14 "2020-07-02T07:34:37Z")

</div>

File doesn’t exist. New link please.
