Bulk download images given a file with urls

This is going to be one of the shortest posts on my blog because there isn’t really much to talk about something which is so simple. 🙂

Recently, I needed to create a small image dataset for one of my machine learning algorithm. I had a text file which had about a 1000 links to images I needed. One can start by writing a program to read this file, divide the lines by new line into an array, then parse the array, download and save the files in a loop.

Well there is an even better way if you are on a linux machine. Use the below command. 🙂

wget -i url_links.txt