DEV Community

Divyansh Agrawal
Divyansh Agrawal

Posted on

How to Use Google to Download Fast from Slow Sites or Mirrors?

So... You want to download a Large file of about assume 500 MBs. But The Site is very slow and You Are Getting A Lot Slower download speeds than usual (assume 1 MB/s).
The Just Use Google Colab (google has pretty high speeds ngl)

But How?

Don't Know How to Do it Follow the steps:

1) Go to Google Colab (Obviously...)
2) Create a New Notebook
3) In the first cell write the following code:

!wget <url>
Enter fullscreen mode Exit fullscreen mode

change the url according to the direct download url (Redirecting urls will not work)

4) Run the cell and wait till it download
5) In a New Cell write the following code to check the filename of the file downloaded

!ls
Enter fullscreen mode Exit fullscreen mode

Copy the filename to your clipboard

6) In a New Cell We Have to download the file. Write the following code

from google.colab import files
files.download('<filename>') 
Enter fullscreen mode Exit fullscreen mode

Change the filename with the name you copied

7) Run the cell and you will see a bar in the output showing your progress. After Some time You will get a save file prompt to finally save the downloaded file to your computer.

With this Technique You could now Skip the 2-3 days download time for just 500 MBs to your usual time.

Top comments (0)