Reliable and easy method
1. Make sure you are logged in your Gdrive.
2. Goto:
3. Click on New Notebook in pop-up. Pics:
4. Now, in the notebook, to the extreme left, there's a 1-inch wide vertical column. Go to the column, and click on the Folder icon ("Files"). Pics:
5. The left column expands to reveal a file explorer. Click on Google Drive icon.
6. A pop-up notification will ask : "Permit this notebook to access your Google Drive files? Connecting to Google Drive will permit code executed in this notebook to modify files in your Google Drive." Click "Connect to Google Drive".
7. Now in the file explorer, there's a new folder visible called "drive". Inside it is "MyDrive". Inside it are you Gdrive contents.
8. Navigate to your rar/zip file using the file explorer. Then, right click and copy path. You can later use this same method to copy path for destination folder (where the file is extracted) as well. Pics:
9. Now in the main notebook space type:
For example:
Pics:
10. Click on Run Cell play button. Or, instead do Ctrl+Enter to execute code.
11. Password will be asked. Type the password (tutflix), and press Enter. Extraction begins. That's all!
12. For 'zip' files replace !unrar with !unzip command.
1. Make sure you are logged in your Gdrive.
2. Goto:
3. Click on New Notebook in pop-up. Pics:
4. Now, in the notebook, to the extreme left, there's a 1-inch wide vertical column. Go to the column, and click on the Folder icon ("Files"). Pics:
5. The left column expands to reveal a file explorer. Click on Google Drive icon.
6. A pop-up notification will ask : "Permit this notebook to access your Google Drive files? Connecting to Google Drive will permit code executed in this notebook to modify files in your Google Drive." Click "Connect to Google Drive".
7. Now in the file explorer, there's a new folder visible called "drive". Inside it is "MyDrive". Inside it are you Gdrive contents.
8. Navigate to your rar/zip file using the file explorer. Then, right click and copy path. You can later use this same method to copy path for destination folder (where the file is extracted) as well. Pics:
9. Now in the main notebook space type:
Code:
You don't have permission to view the code content. Log in or register now.
For example:
Code:
You don't have permission to view the code content. Log in or register now.
Pics:
10. Click on Run Cell play button. Or, instead do Ctrl+Enter to execute code.
11. Password will be asked. Type the password (tutflix), and press Enter. Extraction begins. That's all!
12. For 'zip' files replace !unrar with !unzip command.
Last edited: