python - 爬虫爬取 微信公众号的图片 如何远程保存??
黄舟
黄舟 2017-04-18 09:44:55
0
4
397

今天看到一个网站 很神奇的把微信的图片都一起转发过来,微信的图片应该是有做防盗链处理的:
他的图片链接是
http://read.html5.qq.com/image?src=forum&q=5&r=0&imgflag=7&imageUrl=http://mmbiz.qpic.cn/mmbiz_jpg/l1KRn7tib8WXEBbVYwVdC0YQWOLLHvU2AKiaLkAkx4Az1y36WCStyRd01gaZOSiaT95B7kyJpFK4DsiceVL0JbhgDw/0?wx_fmt=jpeg

然后微信的原图片链接是:
http://mmbiz.qpic.cn/mmbiz_jpg/l1KRn7tib8WXEBbVYwVdC0YQWOLLHvU2AKiaLkAkx4Az1y36WCStyRd01gaZOSiaT95B7kyJpFK4DsiceVL0JbhgDw/0?wx_fmt=jpeg

可以看出来,就是在前面加了
http://read.html5.qq.com/image?src=forum&q=5&r=0&imgflag=7&imageUrl=

不太清楚这个是什么?
是自动转换的吗/?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(4)
巴扎黑

Isn’t it possible to obtain the image path and host it through a third party, Qiniu, or Alibaba Cloud?

小葫芦

First download the image to your own server and then display it to the user

伊谢尔伦

Look at this

http://read.html5.qq.com/image?src=forum&q=5&r=3&imgflag=7&imageUrl=http://mmbiz.qpic.cn/mmbiz_jpg/l1KRn7tib8WXEBbVYwVdC0YQWOLLHvU2AKiaLkAkx4Az1y36WCStyRd01gaZOSiaT95B7kyJpFK4DsiceVL0JbhgDw/0?wx_fmt=jpeg

http://read.html5.qq.com/image?src=forum&q=5&r=0&imgflag=7&imageUrl=http://mmbiz.qpic.cn/mmbiz_jpg/l1KRn7tib8WXEBbVYwVdC0YQWOLLHvU2AKiaLkAkx4Az1y36WCStyRd01gaZOSiaT95B7kyJpFK4DsiceVL0JbhgDw/300?wx_fmt=jpeg

阿神

There is a question and answer on Zhihu specifically about this, please refer to it:

Portal:
http://www.zhihu.com/question...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!