Greasy Fork is available in English.
2021/7/30 下午9:01:58
< Spätná väzba na 西瓜Down - 西瓜视频下载工具
基於:https://geekape.net/xigua-script.html#comment-24
嘗試:
let videoUrls = window._SSR_HYDRATED_DATA.anyVideo.gidInformation.packerData.video.videoResource.dash_120fps.dynamic_video.dynamic_video_list.map(item=> (item.main_url = window.atob(item.main_url), item))
for(var p in videoUrls){
console.log(videoUrls[p]['definition'] + ":" + videoUrls[p]['main_url']);
}
P.S.:有沒有水印對我來說沒差,還在研究怎麼拿出list的原址。
您好,我这里是直接调用西瓜视频的接口,西瓜视频是直接提供代水印的视频的,因此无法去水印
抱歉
基於:https://geekape.net/xigua-script.html#comment-24
嘗試:
let videoUrls = window._SSR_HYDRATED_DATA.anyVideo.gidInformation.packerData.video.videoResource.dash_120fps.dynamic_video.dynamic_video_list.map(item=> (item.main_url = window.atob(item.main_url), item))
for(var p in videoUrls){
console.log(videoUrls[p]['definition'] + ":" + videoUrls[p]['main_url']);
}
P.S.:有沒有水印對我來說沒差,還在研究怎麼拿出list的原址。
该博主分享的脚本地址受限呀 可否封装一份发我一下
基於:https://geekape.net/xigua-script.html#comment-24
嘗試:
let videoUrls = window._SSR_HYDRATED_DATA.anyVideo.gidInformation.packerData.video.videoResource.dash_120fps.dynamic_video.dynamic_video_list.map(item=> (item.main_url = window.atob(item.main_url), item))
for(var p in videoUrls){
console.log(videoUrls[p]['definition'] + ":" + videoUrls[p]['main_url']);
}
P.S.:有沒有水印對我來說沒差,還在研究怎麼拿出list的原址。该博主分享的脚本地址受限呀 可否封装一份发我一下
打開想要觀看的西瓜視頻影片(單一影片),並在 控制台 使用上面的代碼一次貼一條,即可取出源址。
基於:https://geekape.net/xigua-script.html#comment-24
嘗試:
let videoUrls = window._SSR_HYDRATED_DATA.anyVideo.gidInformation.packerData.video.videoResource.dash_120fps.dynamic_video.dynamic_video_list.map(item=> (item.main_url = window.atob(item.main_url), item))
for(var p in videoUrls){
console.log(videoUrls[p]['definition'] + ":" + videoUrls[p]['main_url']);
}
P.S.:有沒有水印對我來說沒差,還在研究怎麼拿出list的原址。
您好,这个
let videoUrls = window._SSR_HYDRATED_DATA.anyVideo.gidInformation.packerData.video.videoResource.dash_120fps.dynamic_video.dynamic_video_list.map(item=> (item.main_url = window.atob(item.main_url), item))
我测试后发现得出的视频虽没水印但是也没有声音呀
好像是有水印的,可以去掉水印么?