Skip to content Skip to sidebar Skip to footer

How To Download This Gif(dynamic) By Python?

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: urll

Solution 1:

This works quite fine for me, to get the animated gif:

>>>import requests>>>uri = 'http://ww4.sinaimg.cn/large/a7bf601fjw1f7jsbj34a1g20kc0bdnph.gif'>>>withopen('/tmp/pr0n.gif', 'wb') as f:...    f.write(requests.get(uri).content)...

Happy fapping!

Post a Comment for "How To Download This Gif(dynamic) By Python?"