Skip to content

How do I open a .gz file from a website in Goolgle colab?

I need help downloading a .gz file in Google colab. The file is here but I can’t download it on my local drive due to the size, it’s 8 GB. I have tried to different ways to do it but I’m stuck.

Any help would be greatly appreciated!




You can use curl to download and tar to extract it.

url = ''
!curl {url} | tar xz

It should take around 15 minutes. The files will be extracted here


See this example notebook

7 People found this is helpful