# Download files from onedrive or any url to gdrive with colab.

**URL:** <https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [July 9, 2020, 6:29pm UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707 "2020-07-09T18:29:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hq\_keliye](https://onehack.st/user_avatar/onehack.st/hq_keliye/32/25352_2.png) [@hq\_keliye](https://onehack.st/u/hq_keliye)\
**Post date:** [July 9, 2020, 6:29pm UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/1 "2020-07-09T18:29:35Z")

</div>

Hello guys, Since last two days i was searching for a method to download files specially from Onedrive to GDrive with colab but i didn’ t found anything bad luck i guess.

I have written few lines of script to do that. With this method I’m getting around around 80 - 90 mbps speed for onedrive download.

Here’s how to do that.

1. Open this [colab](https://colab.research.google.com/drive/16kc0Y8oBWUfkgz-3-tJP9VNPXQCfoIJl?usp=sharing)

2. Paste url and destination path. Ex: `/content/drive/username/folder/filename.extention`

**Getting link for onedrive file**

1. Clink on file and then clink on share button.

 ![Screenshot 2020-07-09 at 11.31.14 PM](https://onehack.st/uploads/default/original/3X/f/3/f35e35b83b5ce6470c1bcbc3938538c92cc40b8f.jpeg)

1. Make sure permission is same as shown in picture. Click on copy link. Thats it.

 ![Screenshot 2020-07-09 at 11.26.40 PM](https://onehack.st/uploads/default/original/3X/1/a/1a9bddd9141217a7ad5ab47f5ed17f7cab6ce5b1.jpeg)

**For other urls just use first shell and paste the link and destination path.**

I hope you will find it helpful.

---

<div class="post-metadata">

**Author:** ![Samoo7](https://onehack.st/user_avatar/onehack.st/samoo7/32/1905_2.png) [@Samoo7](https://onehack.st/u/Samoo7)\
**Post date:** [July 10, 2020, 4:45am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/2 "2020-07-10T04:45:55Z")

</div>

Good Work Not Tested But Awesome

---

<div class="post-metadata">

**Author:** ![Smoke](https://onehack.st/user_avatar/onehack.st/smoke/32/46603_2.png) [@Smoke](https://onehack.st/u/Smoke)\
**Post date:** [July 10, 2020, 4:52am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/3 "2020-07-10T04:52:04Z")

</div>

thhx, its awesome. OneDrive has the powerautomate which could help also.  
does it work with folders?

---

<div class="post-metadata">

**Author:** ![hq\_keliye](https://onehack.st/user_avatar/onehack.st/hq_keliye/32/25352_2.png) [@hq\_keliye](https://onehack.st/u/hq_keliye)\
**Post date:** [July 10, 2020, 6:43am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/8 "2020-07-10T06:43:38Z")

</div>

Automation can tranfer only few mbs of files 50mb i guess. Not yet working with folders. Also added torrent download script so everything in one place.

---

<div class="post-metadata">

**Author:** ![Copy\_Paste](https://onehack.st/user_avatar/onehack.st/copy_paste/32/46275_2.png) [@Copy\_Paste](https://onehack.st/u/Copy_Paste)\
**Post date:** [July 10, 2020, 4:52am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/4 "2020-07-10T04:52:11Z")

</div>

wht abt vice versa gdrive to onedrive?

---

<div class="post-metadata">

**Author:** ![quick-learner](https://onehack.st/user_avatar/onehack.st/quick-learner/32/43997_2.png) [@quick-learner](https://onehack.st/u/quick-learner)\
**Post date:** [July 10, 2020, 5:55am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/5 "2020-07-10T05:55:39Z")

</div>

its easy  
use [https://app.mover.io](https://app.mover.io) MS bought it  
its free

---

<div class="post-metadata">

**Author:** ![hq\_keliye](https://onehack.st/user_avatar/onehack.st/hq_keliye/32/25352_2.png) [@hq\_keliye](https://onehack.st/u/hq_keliye)\
**Post date:** [July 10, 2020, 6:51am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/11 "2020-07-10T06:51:24Z")

</div>

No it doesn’t work gdrive to onedrive because colab can easily mount gdrive but mounting onedrive is pain. Still trying i hope i’ll find a solution soon.

---

<div class="post-metadata">

**Author:** ![Litecoin\_Tele](https://onehack.st/user_avatar/onehack.st/litecoin_tele/32/17968_2.png) [@Litecoin\_Tele](https://onehack.st/u/Litecoin_Tele)\
**Post date:** [July 10, 2020, 6:08am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/6 "2020-07-10T06:08:12Z")

</div>

what is this **problem sir**?  
/content/drive/My Drive/Torrent: _Is a directory_

---

<div class="post-metadata">

**Author:** ![hq\_keliye](https://onehack.st/user_avatar/onehack.st/hq_keliye/32/25352_2.png) [@hq\_keliye](https://onehack.st/u/hq_keliye)\
**Post date:** [July 10, 2020, 6:48am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/10 "2020-07-10T06:48:12Z")

</div>

Are you trying to download with torrent if yes i have added new script in the file use that one. If not torrent then please give file name and extention as well.  
For Ex:- let’s say you are trying to download a mp4 video so your path will look like this. `/content/drive/My Drive/Torrent/filename.mp4`

---

<div class="post-metadata">

**Author:** ![Litecoin\_Tele](https://onehack.st/user_avatar/onehack.st/litecoin_tele/32/17968_2.png) [@Litecoin\_Tele](https://onehack.st/u/Litecoin_Tele)\
**Post date:** [July 10, 2020, 1:36pm UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/13 "2020-07-10T13:36:17Z")

</div>

it worked. thank you sir;;;;

---

<div class="post-metadata">

**Author:** ![imanseptian](https://onehack.st/user_avatar/onehack.st/imanseptian/32/79904_2.png) [@imanseptian](https://onehack.st/u/imanseptian)\
**Post date:** [July 10, 2020, 6:39am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/7 "2020-07-10T06:39:47Z")

</div>

Any trick to download from mega.nz to google drive? Thanks before.

---

<div class="post-metadata">

**Author:** ![hq\_keliye](https://onehack.st/user_avatar/onehack.st/hq_keliye/32/25352_2.png) [@hq\_keliye](https://onehack.st/u/hq_keliye)\
**Post date:** [July 10, 2020, 6:44am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/9 "2020-07-10T06:44:50Z")

</div>

Sorry i don’t use mega cloud. Gdrive and onedrive works fine for me. 🙂

---

<div class="post-metadata">

**Author:** ![str\_junk](https://onehack.st/user_avatar/onehack.st/str_junk/32/32445_2.png) [@str\_junk](https://onehack.st/u/str_junk)\
**Post date:** [July 10, 2020, 7:51am UTC](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707/12 "2020-07-10T07:51:47Z")

</div>

There is a post here about it. Try it [Mega to Google Drive Transfer Via Colab - Video Tutorial](https://onehack.st/t/mega-to-google-drive-transfer-via-colab-video-tutorial/90109)

[Next page](https://onehack.st/t/download-files-from-onedrive-or-any-url-to-gdrive-with-colab/95707.md?page=2)
