dataabc / weiboSpider

新浪微博爬虫,用python爬取新浪微博数据
8.31k stars 1.97k forks source link

怎么不能下载带LIVE视频? #345

Closed yeoxeo closed 3 years ago

yeoxeo commented 3 years ago
dataabc commented 3 years ago

感谢反馈,无法得到live视频有效地址,目前不支持下载。

yeoxeo commented 3 years ago

感谢反馈,无法得到live视频有效地址,目前不支持下载。

action-data pic_video STK.register("lib.feed.plugins.media" 里面有阿

songzy12 commented 3 years ago

感谢反馈,无法得到live视频有效地址,目前不支持下载。

action-data pic_video STK.register("lib.feed.plugins.media" 里面有阿

你好,这段文字仿佛乱码了。

我刚才确认了一下,对于 live,weibo.cn (本程序的爬取站点)只能获取到封面图片。 烦请您请给出具体的用户id,状态id,以及相应的视频链接。

yeoxeo commented 3 years ago

用户 https://weibo.com/tiexuelong?profile_ftype=1&is_all=1#_0 比如这个视频 https://video.weibo.com/media/play?livephoto=//us.sinaimg.cn/001Kmr5Egx07Ndx0EUoT0f0f0100azlV0k01.mov&KID=unistore,videomovSrc

可以在html中找到视频id: 001Kmr5Egx07Ndx0EUoT0f0f0100azlV0k01 是在.media_box ul的action-data属性的pic_video参数中

页面会通过FM.view(域名$CONFIG['mJsPath'])加载 page/js/pl/content/homeFeed/index.js 通过STK.register调用lib.feed.plugins.media模块 把pic_video中的视频id转成"//us.sinaimg.cn/" + a[1] + ".mov" 通过STK.register调用lib.image.livephoto模块 再把上面的转换成f.src = "//video.weibo.com/media/play?livephoto=" + c + "&KID=unistore,videomovSrc"; 要获取js的内容确实不好处理 感觉人为设置更新链接方便点 //video.weibo.com/media/play?livephoto=//us.sinaimg.cn/${ID}.mov&KID=unistore,videomovSrc

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

Closing as stale, please reopen if you'd like to work on this further.