下载微博图片和视频

一键下载一条微博中的图片,文件名包含该微博的路径.xxx_wb_uid_wid,可恢复为 https://weibo.com/uid/wid

< Feedback on 下载微博图片和视频

Question/comment

§
Posted: 2019.02.22.

最近好像失效了,被CORS policy屏蔽

测试:https://www.weibo.com/2441268362/HhxOC0UHM

控制台错误:

Access to fetch at 'https://wx1.sinaimg.cn/large/9182cc8agy1g0cz7ucon0j20u017ahdu.jpg' from origin 'https://www.weibo.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains the invalid value ''. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

FlaoAuthor
§
Posted: 2019.03.26.

有些一直有这个问题

§
Posted: 2019.03.27.

@Flao 说道: 有些一直有这个问题

@connect 能避免CORS问题

§
Posted: 2019.03.27.
Edited: 2019.03.27.

添加

// @connect      *://*.sinaimg.cn

有效!

FlaoAuthor
§
Posted: 2019.04.02.

感谢

§
Posted: 2019.04.08.

@fireattack said: 添加

// @connect      *://*.sinaimg.cn

有效!

貌似新版本更新加入了这个属性,但是还是被CORS阻拦了

§
Posted: 2019.04.08.

@"hao jacy" said:

@fireattack said: 添加

// @connect      *://*.sinaimg.cn

有效!

貌似新版本更新加入了这个属性,但是还是被CORS阻拦了

我使用我LZ那条微博测试正常,能否提供一条无法正常下载的测试。

Post reply

Sign in to post a reply.