I give an url as example:
imgurl = "http://ww4.sinaimg.cn/large/a7bf601fjw1f7jsbj34a1g20kc0bdnph.gif"
You can see it in your browser.
Now I want to download it. I have tried:
urllib.urlretrieve(imgurl, filepath)
failed, got an "error" picture.
wget.download(imgurl)
failed, got an "error" picture.
r = requests.get(imgurl, stream=True)
img = PIL.Image.open(StringIO(r.content))
img.save(filepath)
failed, got a static picture, I mean, just one frame.
So what should I do?