How can I locally save an image using its URL address?
HimaniBansal
-6
Newbie Poster
robin_12
commented:
Files to be saved cannot contain :, /, or, You will have to use re to sub these characters to all " . " Dot.
+0
billie01579
commented:
great this is helpful.
+0
Recommended Answers
Jump to PostHere is another example I wrote a while ago:
''' urlretrieve_image1.py retrieve and save an image from a web page using ... urlretrieve(url[, filename[, reporthook[, data]]]) tested with Python27 and Python36 by vegaseat ''' try: # Python2 from urllib import urlretrieve except ImportError: # Python3 from urllib.request …
All 3 Replies
dukoolsharma
-10
Newbie Poster
happygeek
commented:
No, you are part of bait and reply spam operation
-4
robin_12
0
Newbie Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.