我回复的内容里,所有步骤一步都不能漏,不然是嗅探不到能下载的链接的
之前小红书回放的下载其实有更简单的方法
[JavaScript] 纯文本查看 复制代码 javascript:(function(){var queryString=window.location.search;var params=new URLSearchParams(queryString);var shareSourceId=params.get('share_source_id');var hostId=params.get('host_id');if(!shareSourceId||!hostId){alert('❌ 缺少必要参数!\n\nshare_source_id: '+shareSourceId+'\nhost_id: '+hostId);return}var xhshref="https://www.xiaohongshu.com/api/sns/v1/live/dynamic/clip_detail_web?clip_id="+shareSourceId+"&host_id="+hostId;navigator.clipboard.writeText(xhshref).then(()=>{var result='✅ API URL已复制到剪贴板!\n\n';result+='📋 参数信息:\n';result+='🔗 API URL:\n'+xhshref;if(confirm(result+'\n\n是否打开此API?')){location.href=xhshref}}).catch(()=>{alert('❌ 无法自动复制,请手动复制:\n\n'+xhshref)});console.log('生成的API URL:',xhshref)})(); |