获取B站各播放页及直播间封面,支持手动及实时预览等多种模式,支持点击下载、封面预览、快速复制,可高度自定义
什么页面不行?是直播间吗?我只测出这个。
是的。直播间页面的按钮消失了。
刚才没有试,现在发现视频页面可以正常使用。
好的,谢谢反馈。这个脚本在搞大更新,可能明天才能上传,请稍等一下。
已修复,请更新至 V5.0.1
感谢,已可正常使用。
麻烦给一下直播间的地址,好像每个活动直播间都不太一样,喷了……
顺便,你看一下 https://live.bilibili.com/404?broadcast_type=0 这个直播间能不能获取到?
比如https://live.bilibili.com/631或https://live.bilibili.com/21452505或https://live.bilibili.com/704808
另,404直播间也无法获取。
这里的附件好像只能上传图片,直接复制到下面了:
<div id="head-info-vm" class="head-info-section live-skin-coloration-area p-relative border-box z-head-info"><div data-v-1c038f1a="" class="header-info-ctnr"><a data-v-1c038f1a="" href="//space.bilibili.com/434334701/" target="_blank" class="room-cover dp-i-block p-relative bg-cover"><div data-v-1c038f1a="" role="img" class="anchor-avatar h-100 p-relative bg-cover" style="background-image: url("http://i2.hdslb.com/bfs/face/e6f0771a0b88f16b6d449ce7d53e4972fe44fecb.jpg@100w_100h.webp");"></div><div data-v-88b0ca68="" data-v-1c038f1a="" class="face-pendants p-absolute" style="width: 64px; height: 64px;"><div data-v-14e15db8="" data-v-88b0ca68="" title="" class="pendant-item bg-no-repeat bg-center bg-cover face-avatar-box" style="background-image: url("https://i0.hdslb.com/bfs/vc/40862cd8245b1742bdc9f2b563fcae1335e6fa6c.png@176w_176h.webp"); width: 88px; height: 88px; left: -12px; top: -12px;"></div><div data-v-14e15db8="" data-v-88b0ca68="" title="" class="pendant-item bg-no-repeat bg-center bg-cover face-corner-box corner-3" style="background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAu9JREFUSA21VTtrVUEQ/s5Ryc2DiKA3LzXiIyJWpolFChEbCxFs1CiiYiPY2VhFDAgWmkYQbEQsElt/ga1BTHwiUZtYmOT6iqJ5mNyzft/u3XvOufeehIAO7Nk5M7Pf7MzOzgZYgYwxAU32cezmaC+Zf+I8zjEWBIEpyVY3ETjPMWii4iTn2uR0g1Tms9C1uyrigssw0QAVORSehCiMAD8/AAvfnW3dBqB5J5Dv4dgfUTiPIOxnNLcqwVIOCJyjwT2Ok/g8YjB+P8DcdOWa9H99C5N31mBTj7CGOc7T0bw3qnQwBGNO4P2DABOPvE313NQJ/JpIyzuPArvOGATBQzro88rQMzYt2vlK4NuPAxu7/bJ41oa0lhglLKuzDijI25wrLcvtfNsxYAcdzE7FwElOa4XB87OY1PkIrpDP2ZwnFyT5rUeYgtNOMjuZ1KR5nZuwAGEipKeAHvtstWQd6JbDPMhzsnc0lxGBtMJQ5RFT2IqgmyXWYkvRLU9/Ow4R/EIsW5gBiuUiieVJTmUtTGLLQZfVqc4rqe0AsOcijRV1iZbbvbeJsbrWUuauv79E3qi1F9h7KQ0u3Xru5yDL3fB++REtAm9uA99euNUxVrscVJPKUDs3RerUahioj0JZXVMXr4mWgNd3Y/BYI87IgRoXoOvvq+PLKPD4lBWXP/WtQO+d8q9ltPOXN1maT9NyYTma1Bm8s7x6y3LU0JbWFv8Az29Ug8sqxhqXg1Hmcto2rjRE+q+xI/4vLhD8OvB1LJYlOTVBE6mWx0Lbz4NwyHZFNa4sanC1gKU5bmmAOX9V21IY6rBBOCxsRSBirGy56opZ1EgHi78Jfg2YeZtl5TqrsBymaxX0VFA/ty1XXbEWrWsGnl0Ffrgjq2UCrVXbdm9DQTaJG8S0GZPRrhlo02a26I81ca0wo11XOsjR+P89OH57jOSfPZkes2qmE//oT5GvTVFRutU/+klvBFAa9YSpKZZq1d5+nfaoLXMyWfQXEANsHHt7/lIAAAAASUVORK5CYII="); width: 24px; height: 24px;"></div></div></a><div data-v-1c038f1a="" class="room-info-ctnr dp-i-block"><div data-v-7dc1fe2a="" data-v-1c038f1a="" class="room-info-upper-row p-relative"><div data-v-7dc1fe2a="" class="normal-mode"><div data-v-7dc1fe2a="" class="info-section dp-i-block v-middle"><h1 data-v-7dc1fe2a="" title="星空杯好好练习!话少" class="room-title dp-i-block v-middle t-no-wrap"><span data-v-da52bc54="" data-v-7dc1fe2a="" class="live-status-label live-skin-highlight-text live-skin-highlight-border v-middle live">直播</span><span data-v-7dc1fe2a="" class="title-length-limit live-skin-main-text v-middle dp-i-block small-title">星空杯好好练习!话少</span></h1><!----></div><div data-v-7dc1fe2a="" class="info-section dp-i-block v-middle"><span data-v-7dc1fe2a="" title="虚拟主播" class="area-text dp-i-block v-middle"><a data-v-7dc1fe2a="" href="//live.bilibili.com/p/eden/area-tags?parentAreaId=9&areaId=371" target="_blank" class="area-link live-skin-normal-a-text v-middle ts-dot-2 child-area dp-i-block t-no-wrap t-over-hidden">虚拟主播</a></span><!----></div><div data-v-1456cbed="" data-v-7dc1fe2a="" class="dp-i-block info-section v-middle"><div data-v-1456cbed="" class="hot-not-rank"><div data-v-1456cbed="" class="hot-rank-text"><span data-v-1456cbed="">热门榜</span><span data-v-1456cbed="" class="hot-rank-text-icon"></span></div></div></div></div><div data-v-7dc1fe2a="" class="upper-right-ctnr p-absolute none-select"><!----><!----><div data-v-7dc1fe2a="" class="right-action-ctnr live-skin-normal-a-text pointer dp-i-block btn"><i data-v-7dc1fe2a="" class="icon-font icon-report v-middle"></i><span data-v-7dc1fe2a="" class="action-text v-middle dp-i-block">举报</span></div><div data-v-7dc1fe2a="" class="right-action-ctnr live-skin-normal-a-text pointer dp-i-block btn"><i data-v-7dc1fe2a="" class="icon-font icon-share v-middle"></i><span data-v-7dc1fe2a="" class="action-text v-middle dp-i-block">分享</span></div><div data-v-7dc1fe2a="" title="人气值" class="right-action-ctnr dp-i-block"><i data-v-7dc1fe2a="" class="icon-font icon-popular live-skin-normal-text v-middle"></i><span data-v-7dc1fe2a="" class="action-text v-middle live-skin-normal-text dp-i-block">101.3万</span></div></div></div><div data-v-8f625474="" data-v-1c038f1a="" class="room-info-down-row"><div data-v-5d6a2fe8="" data-v-8f625474="" class="dp-i-block v-middle p-relative"><span data-v-5d6a2fe8="" class="up-level-icon pointer lv-37">UP 37</span><div data-v-7b88892f="" data-v-5d6a2fe8="" class="drop-ctnr p-absolute" style="display: none;"><div data-v-7b88892f="" class="common-popup-wrap arrow-top drop-bubble-ctnr"><div data-v-5d6a2fe8="" class="master-rank-ctnr"><p data-v-5d6a2fe8="" class="rank-text-ctnr">当前排名:<span data-v-5d6a2fe8="" class="rank-text">285</span></p></div><div data-v-5d6a2fe8="" class="progress-outer-ctnr"><p data-v-5d6a2fe8="" class="next-text t-center">升级还需 12901128 积分</p><div data-v-5d6a2fe8="" class="progress-ctnr"></div><span data-v-5d6a2fe8="" class="dp-i-block v-middle lv-text">UP.37</span><div data-v-5d6a2fe8="" class="score-progress-bar dp-i-block v-middle p-relative"><div data-v-5d6a2fe8="" class="progress-bar-core p-absolute" style="width: 35.4944%;"></div></div><span data-v-5d6a2fe8="" class="dp-i-block v-middle lv-text">UP.38</span></div><p data-v-5d6a2fe8="" class="score-introduction">积分通过获得的道具提升,每 <span data-v-5d6a2fe8="" class="emphasis">1电池</span>或者<span data-v-5d6a2fe8="" class="emphasis">100银瓜子</span> 的礼物提升 <span data-v-5d6a2fe8="" class="emphasis">1点</span> 积分。</p></div></div></div><a data-v-8f625474="" title="七海Nana7mi" href="//space.bilibili.com/434334701/" target="_blank" class="room-owner-username live-skin-normal-a-text dp-i-block v-middle">七海Nana7mi</a><a data-v-8f625474="" href="//link.bilibili.com/p/help/index#/anchor-san" target="_blank"><!----></a><div data-v-5132d762="" data-v-8f625474="" class="icon-label dp-i-block p-relative pointer"><i data-v-5132d762="" class="icon svg-icon v-middle gift" style="font-size: 24px;"></i><span data-v-5132d762="" class="label live-skin-normal-a-text v-middle" style="margin-left: 8px; font-size: 12px; color: rgb(153, 153, 153);">8661.3 万</span><div data-v-7b88892f="" data-v-5132d762="" class="drop-ctnr p-absolute" style="display: none;"><div data-v-7b88892f="" class="common-popup-wrap arrow-top drop-bubble-ctnr"><p data-v-8f625474="" class="hover-description">主播积分:主播每收到1电池或者100银瓜子的礼物提升1点积分</p></div></div></div><a data-v-8f625474="" href="//live.bilibili.com/p/eden/rank#/childnav/vitality/3" target="_blank" rel="noopener" title="元气主播榜" class="dp-i-block info-section live-skin-normal-a-text v-middle icon-label"><div data-v-5132d762="" class="icon-label dp-i-block p-relative pointer"><i data-v-5132d762="" class="icon svg-icon v-middle ranking-big" style="font-size: 24px;"></i><span data-v-5132d762="" class="label live-skin-normal-a-text v-middle" style="margin-left: 4px; font-size: 14px; color: rgb(153, 153, 153);">No. 4</span><!----></div></a><div data-v-98595c48="" data-v-8f625474="" class="activity-gather-entry activity-entry dp-i-block"><div data-v-8cf5050e="" data-v-98595c48="" class="task-box"><div data-v-8cf5050e="" class="task-gather-entry"><span data-v-8cf5050e="" out-in="out-in"><div data-v-4ef6cc47="" data-v-8cf5050e="" roomid="21452505" class="rank-item task-move-leave-active task-move-leave-to"><div data-v-72f51842="" data-v-4ef6cc47="" class="activity-rank dp-i-block p-relative v-middle pointer"><div data-v-72f51842="" class="act-ani-rank"><div data-v-72f51842="" class="rank-item"><div data-v-72f51842="" class="itm"><div data-v-72f51842="" class="tag"><div data-v-72f51842="" class="track">娱乐巅峰</div></div><div data-v-72f51842="" class="content"><div data-v-72f51842="" class="prefix">第</div><div data-v-72f51842="" class="strong">43</div><div data-v-72f51842="" class="prefix">名</div></div></div><!----></div></div></div></div><div data-v-4ef6cc47="" data-v-8cf5050e="" roomid="21452505" class="rank-item task-move-enter-active task-move-enter-to"><div data-v-3551320b="" data-v-4ef6cc47="" class="activity-rank dp-i-block p-relative v-middle pointer"><div data-v-3551320b="" class="act-ani-rank"><div data-v-3551320b="" class="rank-item rank-move-enter-active rank-move-enter-to"><div data-v-3551320b="" class="itm"><div data-v-3551320b="" class="tag"><div data-v-3551320b="" class="track">排名</div></div><div data-v-3551320b="" class="content"><div data-v-3551320b="" class="prefix">>200 名</div></div></div><!----><!----><!----></div></div></div></div></span></div><div data-v-8cf5050e="" class="actGatherRef"></div></div></div><div data-v-0c7d9f44="" data-v-8f625474="" class="attention-btn-ctnr v-middle p-absolute" style="z-index: 1;"><div data-v-0c7d9f44="" role="button" aria-label="点击查看粉丝勋章面板" title="点击查看粉丝勋章面板" class="left-part live-skin-highlight-bg live-skin-button-text dp-i-block pointer p-relative"><!----><!----><span data-v-0c7d9f44="" class="follow-text v-middle d-inline-block">粉丝团 </span><i data-v-0c7d9f44="" class="icon-font v-middle icon-arrow-right self-icon-arrow-right"></i><!----></div><div data-v-0c7d9f44="" class="p-absolute loli-ctnr fix normal" style="display: none;"></div><div data-v-0c7d9f44="" class="right-part live-skin-separate-border live-skin-separate-area dp-i-block live-skin-normal-text">1.3 万</div></div><!----><!----></div></div></div></div>
好的,谢谢!
原因是找到了,明天才能更新。
——我猜你是同时打开了很多个直播间。。。
是的。(/▽\)
但是我刚刚尝试只打开一个直播间,依然无法获取。
请更新至 v5.2.0,应该没问题了。不过你说只开一个直播间也不行的话。。。
更新之后出现了更神奇的现象:
在404和631直播间,多次ctrl+F5,有时可以获取,有时“获取封面”按钮会消失。
上述中其他直播间更新后可以稳定获取。
先确认一下,你说的「获取不到」是指按钮消失,不是指点了按钮之后下载失败是吧?
你等页面加载完成之后点键盘 F12,切到 console / 控制台 看一下有什么报错或者警告信息不?
你把 2 点开看一下里面是啥
其实已经不影响使用了,一般刷新一下按钮就会出现φ(゜▽゜*)♪
请更新至 V5.2.1,这次应该彻底解决问题了💢💢💢
太感谢啦❤️❤️❤️
这次真的没问题了吗?这个问题跟 CPU 有关,理论上来说电脑配置越高出 BUG 的概率就越大,我只能用其他手段模拟测试,行不行还需要你反馈一下……
目前我没有发现问题了,所有直播间都可以正常稳定获取。
这样就太好了,谢谢你这两天帮忙排查问题🙏🙏🙏
脚本管理器:暴力猴v2.12.11
浏览器:Google Chrome 92.0.4515.107
不能用了,没有获取封面的按钮