[Python]Download an image embedded in a mime multipart message
- by michele
Hi,
I have to download some images from links.
This links return me a file where is embedded a multipart mime and a tiff image.
I have writed this code but it downloads the file with mime.
How I can remove the mime from this file and have the image returned?
Can I do this with wget or curl?
My code:
def download(url,local):
import urllib
urllib.urlretrieve(url,local)
urllib.urlcleanup()
Thanks a lot.