Python: How to download Images using Python & Google Colab?

Priyanka Dobhal
2 min readDec 6, 2020

Have you been in a situation where you had to download a bunch of images manually? Welcome to the club! Been there, done that.

But you don’t have to do that anymore.

Automate your boring stuff with Python (Stole it from the book :D ).

For this tutorial, I have taken an example of extracting the movie posters from IMDB.

https://www.imdb.com/chart/moviemeter/?ref_=watch_tpks_chtmvm

Now the above link has 100 images and it is not ideal for you to download them individually. And secondly, the images on this page are way too small.

1.0 Image of Screen

So the idea is to use the Image of the movie present on the Movie’s page instead

1.1 Image on the Movie’s Page

I have used Google Colab to write up my code since it is easy to use and share.

If you’re new to it, here’s a video that would help you get started —

https://youtube.com/watch?v=inN8seMm7U

Let’s jump into the code -

1.2 Image from Google Colab

Now to download the images to your local system, right-click on Images.zip, and click download.

Vola! One little code to reduce your manual work.

Did this help you? Would love to hear from you.

Thanks for the read :)

--

--