If txt file have images name (defined by us) first and then image url. In this case how to download? Below is example
cat-1.png https://cdn.pixabay.com/photo/2017/06/12/19/02/cat-2396473__480.jpg
cat-2.png https://cdn.pixabay.com/photo/2017/06/12/19/02/cats-796437__480.jpg
cat-3.png https://cdn.pixabay.com/photo/2017/06/12/19/02/cat-67345__480.jpg
In above example there are two main parts in one line, first is image name and second it image url. Downloaded image name will be different but I want to apply image name given in the start of every line.
For example in line 2 from above data, the downloaded image will be cats-796437__480.jpg but after downloading it should be renamed and then save as cat-2.png .
If txt file have images name (defined by us) first and then image url. In this case how to download? Below is example
cat-1.png https://cdn.pixabay.com/photo/2017/06/12/19/02/cat-2396473__480.jpgcat-2.png https://cdn.pixabay.com/photo/2017/06/12/19/02/cats-796437__480.jpgcat-3.png https://cdn.pixabay.com/photo/2017/06/12/19/02/cat-67345__480.jpgIn above example there are two main parts in one line, first is image name and second it image url. Downloaded image name will be different but I want to apply image name given in the start of every line.
For example in line 2 from above data, the downloaded image will be cats-796437__480.jpg but after downloading it should be renamed and then save as cat-2.png .