Issue
I have access to unlimited GDrive suite and I would like to transfer a public folder from Mega to my Drive. Here are the steps I have already tried along with their issues I faced :
- Google Colab method --> Colab disconnecting after 5-10 minutes of running; Issue already raised on Github code
- MultiCloud --> Possible to copy files in my MegaDrive; but I want to copy public folders such as this one
- RClone --> Same issue as above; Also an error generated while creating a config file
- Mega.py library --> Only for files, not folders; Error when downloading from mega.nz as documentation mentions only for mega.co.nz
- MegaCopy from MegaTools --> Did not find a Windows implementation; also need a python integration of it if possible
- The old, download from Mega and upload to Google Drive method --> Extremely slow download speed
I am exhausted and out of ideas I can think of for this seemingly easy task. It would be extremely helpful if someone could be of my help. Thank you in advance.
Solution
I would definitely go with Google Colab.
You just have to install MegaCMD in your Notebook, mount your google drive and get your folder(s)!
I just created one for this purpose: https://colab.research.google.com/drive/1tadBcXE4vkKaFETsWGJ_B7O8uKxp6E9J?usp=sharing
Edit: the content of the Notebook:
- Import GDrive:
from google.colab import drive
drive.mount('/content/drive')
- Move to your mounted drive and create directory:
cd /content/drive/MyDrive/
!mkdir MegaImport
cd MegaImport
- Install dependencies:
!apt install libmms0 libc-ares2 libc6 libcrypto++6 libgcc1 libmediainfo0v5 libpcre3 libpcrecpp0v5 libssl1.1 libstdc++6 libzen0v5 zlib1g apt-transport-https
- Download and install MegaCMD:
!wget https://mega.nz/linux/MEGAsync/Debian_9.0/amd64/megacmd_1.4.0-3.1_amd64.deb
!dpkg -i megacmd_1.4.0-3.1_amd64.deb
- Login to Mega (replace with your email and pwd):
!mega-login email password
- Get the folder you wish:
!mega-get <remote_folder> ./
Answered By - Tranbi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.