How to Download All Images from a Web Page in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to Download All Images from a Web Page in Python?

Please someone help me 🙏💓

23rd Mar 2022, 8:50 PM
Osame Adam Abdulle
Osame Adam Abdulle - avatar
1 Answer
+ 2
# First import wget python module. import wget # Set up the image URL image_url = "https://cdn.pixabay.com/photo/2020/02/06/09/39/summer-4823612_960_720.jpg" # Use wget download method to download specified image url. image_filename = wget.download(image_url) print('Image Successfully Downloaded: ', image_filename)
24th Mar 2022, 3:37 AM
CodeStory
CodeStory - avatar