一个相对简单的调取全民K歌连接的方法
第一步:先把下面这组代码收藏好:
自动播放代码
<audio style="width: 300px; height: 64px;" src="http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=填入字符串" autoplay="autoplay" loop="loop" controls="controls" type="audio/mpeg"></audio>
手动播放代码
<audio style="width: 300px; height: 64px;" src="http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=填入字符串" loop="loop" controls="controls" type="audio/mpeg"></audio>手动播放代码 <audio style="width: 300px; height: 64px;" src="http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=填入字符串" loop="loop" controls="controls" type="audio/mpeg"></audio>
第二步:从全民K歌的分享连接里找到这个字符串,以剑公子的《我愿意》为例
他这首歌的分享连接如下,找到“s=”和“&”中间的这段字符,这是全民给你上传的音乐定的序号。
<br><br> <section class="_editor" style=" margin: 0px auto;width:600PX;"> <section style="margin: 10px auto; background: linear-gradient(to left, #ffffff 0%, #ffffff 20%, #7BC2E2 20%, #7BC2E2 100%);"> <section style="margin: 10px auto; background: linear-gradient(to top, #ffffff 0%, #ffffff 60%, transparent 60%, transparent 100%); padding: 0px 0px 25px; box-sizing: border-box;"> <section style="display: flex; transform-style: preserve-3d;"> <section style="width: 100%;max-width: 100% !important;box-sizing:border-box;transform: translateZ(10px);-webkit-transform: translateZ(10px);-moz-transform: translateZ(10px);-o-transform: translateZ(10px);" data-width="100%"> <section style="padding: 13px 20px 13px 13px; box-sizing: border-box;"> <section style="background-color:#7BC2E2;padding:0px 0px 0px;"> <section style="margin-top:0px;border:solid 1px #7BC2E2;background-color:#fefefe;"> <section style="padding:0px 0px 0px;"> <p align="center"><video controls preload="metadata" autoplay="autoplay" loop="loop" width="565" height="auto"> <source src="https://video7.peiyinxiu.com/download/202407281534c6347598_165291764.mp4"></video></p> </section> </section> </section> </section> <section style="display: flex;justify-content: flex-end;"> <section style="width: 80%; border-top: 1px solid #7BC2E2; height: 10px; overflow: hidden;box-sizing:border-box;max-width: 90% !important;" data-width="90%"></section> </section> </section> <section style="display: flex;align-items: flex-end;flex-shrink: 0;margin: 0 0 0 -7px;"> <section style="height: 60%;border-left: 1px solid #7BC2E2;width: 7px;box-sizing:border-box;"><br /></section> </section> </section> </section> </section> </section> <br><br>
代码2
<div align="center"><section style="width:650px;">
<section class="_135editor" data-tools="135编辑器" data-id="89056">
<section style="padding:10px 10px;">
<section style=" border-left:solid 2px #ededed; border-top:solid 2px #ededed; border-right:solid 2px #ededed; box-shadow:5px 5px 5px #333; -moz-box-shadow:5px 5px 5px #333;-ms-box-shadow:5px 5px 5px #333;-o-box-shadow:5px 5px 5px #333;-webkit-box-shadow:5px 5px 5px #333; border-radius:20px; padding:0px 15px;">
<section style="box-sizing:border-box;width:100%; height:20px; padding-top:5px;" data-width="100%">
<section style="box-sizing:border-box;width:10px; height:10px; margin-left:auto; margin-right:auto; border-radius:100%; background-color:#0a0a0a;"></section>
</section>
<section style="box-sizing:border-box;width:100%; height:auto; background:#000;" data-width="100%">
<section style=" padding:10px 10px; height:auto; background-color:#0b0a0a; min-height:100px; overflow:hidden; min-height:150px;" hm_fix="404:441">
<p align="center"><video controls="" preload="metadata" autoplay="autoplay" loop="loop" width="574" height="323"><source src="https://video7.peiyinxiu.com/download/202407281534c6347598_165291764.mp4" type="video/mp4"></video></p>
</section>
</section>
<section style="box-sizing:border-box;width:100%; height:20px; padding-top:5px;" data-width="100%">
<section style="box-sizing:border-box;width:20px; height:10px; margin-left:auto; border-radius:30%; margin-right:auto; border-left:solid 1px #f8f8f8; border-bottom:solid 2px #e7e7e7; border-right:solid 1px #ededed;"></section>
</section>
</section>
<br><br>
<p style="text-align:center;margin-top:5px;" align="center">
<span style="font-size: 14px;">//爱你一万年//</span>至尊宝 配音:薛痒
</p>
</section>
</section>
<br><br><br></section></div>
<p></p><div class="t_fsz">
<table cellspacing="0" cellpadding="0"><tbody><tr><td class="t_f" id="postmessage_9434"><div align="center"><section style="width:650px;"><section class="_editor" data-support="96编辑器" data-style-id="20459"><section style="margin: 5px;
border-style: solid; border-radius: 15px; border-width: 2px; box-shadow: rgb(136, 136, 136) 3px 3px 3px; padding-top: 20px; padding-right: 20px; padding-left: 20px; box-sizing: border-box;"><p style="text-align: center; margin-right:
70px; margin-left: 70px; color: rgb(65, 59, 59); line-height: 2em; letter-spacing: 2.4px; font-size: 13px;"><span style="letter-spacing: 2.4px; text-align: justify;">母爱的深沉<span id="kM0.6064800665648795">@婉兮</span> </span></p><section style="color: rgb(131,
141, 195); margin-top: 10px; margin-bottom: 10px;">
<video controls="" preload="metadata" autoplay="autoplay" loop="loop" width="580" height="atuo">
<source src="https://video7.peiyinxiu.com/download/20240808093961843d7a_10397228.mp4"><br>
</video>
<p></p><br></section>
</section>
</section><br></section></div></td></tr></tbody></table>
</div>
|