bilibili.com/kktv.me/viu.com流媒体平台字幕下载脚本
|
![]() |
![]() |
![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |
目前支持 viu.com kktv.me bilibili.com
视频网站的CC字幕抓取下载
当你下载了BD资源但是找不到字幕的时候就来这几家平台碰碰运气吧!
kktv.me需要原生TW IP 才能观看影片,下载字幕无需TW IP,非会员只能第一集试看
KKTV为KKCompany 集团旗下的OTT品牌,结合台湾、日本、韩国、香港及中国大陆等,各地的影音内容与影音流服务
部分大陆没有引进的番剧可以来着看看有没有繁体字幕,翻译水平还行,至少比叔叔家的机翻字幕强点
脚本可以自行判断该番剧有无字幕,因为这个网站有外挂字幕的番剧占比不高
仅查看网站无需vip也无需台湾IP,非会员可免费试看一集
目前测试了几个番剧。比如 《失格纹的最强贤者》 《宿命回响:命运节拍》都是可以正常下载的
温馨提示:搜索视频的时候请用繁体字搜索,不知道繁体名称就用关键字一个一个试
rm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中"echo "输入剧集地址:(链接中为带titles字眼的链接,如https://www.kktv.me/titles/06001246"read -p "请输入:" videourlwget -N --no-check-certificate -O index.html "$videourl"subhls_num=$( grep -o "_sub_hls.m3u8" index.html | wc -l )hls_num=$( grep -o "_hls.m3u8" index.html | wc -l )if [[ $hls_num -eq '0' ]] then echo 该剧集可能没有字幕文件 else if [[ $subhls_num -eq $hls_num ]] then echo 该剧集存在字幕文件 else echo 该剧集可能没有字幕文件 fifised -i 's/theater\.kktv\.com\.tw/\n△△△/g' index.htmlsed -i 's/\_sub\_hls\.m3u8/◎◎◎\n/g' index.htmlgrep '◎◎◎' index.html > index.txtsed -i 's/◎◎◎/\_sub\_sub\/zh-Hant\.vtt/g' index.txtsed -i 's/△△△/https\:\/\/theater-kktv\.cdn\.hinet\.net/g' index.txtii="0"rm -rf seasonmkdir seasonfor line in $(cat index.txt) do ii=`expr $ii + 1` ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/EP"$ep".srt "$line" sed -i '1d' ./season/EP"$ep".srt donerm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中"echo "输入剧集地址:(链接中为带titles字眼的链接,如https://www.kktv.me/titles/06001246"read -p "请输入:" videourlwget -N --no-check-certificate -O index.html "$videourl"subhls_num=$( grep -o "_sub_hls.m3u8" index.html | wc -l )hls_num=$( grep -o "_hls.m3u8" index.html | wc -l )if [[ $hls_num -eq '0' ]] then echo 该剧集可能没有字幕文件 else if [[ $subhls_num -eq $hls_num ]] then echo 该剧集存在字幕文件 else echo 该剧集可能没有字幕文件 fifised -i 's/theater\.kktv\.com\.tw/\n△△△/g' index.htmlsed -i 's/\_sub\_hls\.m3u8/◎◎◎\n/g' index.htmlgrep '◎◎◎' index.html > index.txtsed -i 's/◎◎◎/\_sub\_sub\/zh-Hant\.vtt/g' index.txtsed -i 's/△△△/https\:\/\/theater-kktv\.cdn\.hinet\.net/g' index.txtii="0"rm -rf seasonmkdir seasonfor line in $(cat index.txt) do ii=`expr $ii + 1` ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/EP"$ep".srt "$line" sed -i '1d' ./season/EP"$ep".srt donerm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中"echo "输入剧集地址:(链接中为带titles字眼的链接,如https://www.kktv.me/titles/06001246"read -p "请输入:" videourlwget -N --no-check-certificate -O index.html "$videourl"subhls_num=$( grep -o "_sub_hls.m3u8" index.html | wc -l )hls_num=$( grep -o "_hls.m3u8" index.html | wc -l )if [[ $hls_num -eq '0' ]] then echo 该剧集可能没有字幕文件 else if [[ $subhls_num -eq $hls_num ]] then echo 该剧集存在字幕文件 else echo 该剧集可能没有字幕文件 fifised -i 's/theater\.kktv\.com\.tw/\n△△△/g' index.htmlsed -i 's/\_sub\_hls\.m3u8/◎◎◎\n/g' index.htmlgrep '◎◎◎' index.html > index.txtsed -i 's/◎◎◎/\_sub\_sub\/zh-Hant\.vtt/g' index.txtsed -i 's/△△△/https\:\/\/theater-kktv\.cdn\.hinet\.net/g' index.txtii="0"rm -rf seasonmkdir seasonfor line in $(cat index.txt) do ii=`expr $ii + 1` ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/EP"$ep".srt "$line" sed -i '1d' ./season/EP"$ep".srt done下载下来的字幕文件将会存放在season目录中 ,下载下来就是srt格式,播放器可正常加载
bilibili.com港澳台IP即可,叔叔家港澳台限制番剧 有CC字幕,下载下来为bcc格式需要转码
#yum install -y p7zip*#apt install -y p7zip*rm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中,若文件皆为空白,则说明该番剧没有字幕文件!"echo "输入番剧地址:(结尾为带md字眼的链接,如https://www.bilibili.com/bangumi/media/md28234736/"read -p "请输入:" videourlwget -N --no-check-certificate -O index.zip "$videourl" 7z x index.zipseason_id=$( grep -o "season_id.........season_status" index )season_id=`echo "$season_id" | tr -cd "[0-9]" `echo "season_id是:"$season_idwget -N --no-check-certificate -O season.json "https://api.bilibili.com/pgc/web/season/section?season_id=$season_id"sed -i 's/{\"aid/\n{\"aid/g' season.jsonsed -i '1d' season.jsonsed -i 's/{\"aid\"\:/◎◎◎/g' season.jsonsed -i 's/\,\"badge\"\:/\n☆☆☆/g' season.jsonsed -i 's/\"cid\"\:/\n△△△/g' season.jsonsed -i 's/\,\"cover\"/\n☆☆☆/g' season.jsonsed -i '/☆☆☆/d' season.jsonsed -i 's/◎◎◎/https\:\/\/api.bilibili.com\/x\/player\/v2\?aid\=/g' season.jsonsed -i 's/△△△/\&cid\=/g' season.jsonsed -i ':a;N;s/\n//;ta' season.jsonsed -i 's/https/\nhttps/g' season.jsonsed -i '1d' season.jsonii="0"cclink=""rm -rf seasonmkdir seasonfor line in $(cat season.json) do ii=`expr $ii + 1` echo 第$ii集$line ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/"$ep" "$line" sed -i 's/\"subtitle_url\"\:\"/\nhttps\:/g' ./season/"$ep" sed -i 's/\"\,\"type/\n/g' ./season/"$ep" sed -i '/id_str/d' ./season/"$ep" sed -i '/bvid/d' ./season/"$ep" cclink=$( cat ./season/"$ep" | head -n 1 ) wget -N --no-check-certificate -O ./season/"$ep".bcc "$cclink" rm -rf ./season/"$ep"donesizeA=$(du -h --max-depth=1 ./season | awk '{print $1}' | tr -d "a-zA-Z" |sed "s/\..*//g")sizeB=$(find ./season -type f | wc -l)sizeB=`expr $sizeB \* 2`if [[ $sizeA -le $sizeB ]] then echo "该剧集可能没有字幕文件" else echo ""fi#yum install -y p7zip*#apt install -y p7zip*rm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中,若文件皆为空白,则说明该番剧没有字幕文件!"echo "输入番剧地址:(结尾为带md字眼的链接,如https://www.bilibili.com/bangumi/media/md28234736/"read -p "请输入:" videourlwget -N --no-check-certificate -O index.zip "$videourl" 7z x index.zipseason_id=$( grep -o "season_id.........season_status" index )season_id=`echo "$season_id" | tr -cd "[0-9]" `echo "season_id是:"$season_idwget -N --no-check-certificate -O season.json "https://api.bilibili.com/pgc/web/season/section?season_id=$season_id"sed -i 's/{\"aid/\n{\"aid/g' season.jsonsed -i '1d' season.jsonsed -i 's/{\"aid\"\:/◎◎◎/g' season.jsonsed -i 's/\,\"badge\"\:/\n☆☆☆/g' season.jsonsed -i 's/\"cid\"\:/\n△△△/g' season.jsonsed -i 's/\,\"cover\"/\n☆☆☆/g' season.jsonsed -i '/☆☆☆/d' season.jsonsed -i 's/◎◎◎/https\:\/\/api.bilibili.com\/x\/player\/v2\?aid\=/g' season.jsonsed -i 's/△△△/\&cid\=/g' season.jsonsed -i ':a;N;s/\n//;ta' season.jsonsed -i 's/https/\nhttps/g' season.jsonsed -i '1d' season.jsonii="0"cclink=""rm -rf seasonmkdir seasonfor line in $(cat season.json) do ii=`expr $ii + 1` echo 第$ii集$line ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/"$ep" "$line" sed -i 's/\"subtitle_url\"\:\"/\nhttps\:/g' ./season/"$ep" sed -i 's/\"\,\"type/\n/g' ./season/"$ep" sed -i '/id_str/d' ./season/"$ep" sed -i '/bvid/d' ./season/"$ep" cclink=$( cat ./season/"$ep" | head -n 1 ) wget -N --no-check-certificate -O ./season/"$ep".bcc "$cclink" rm -rf ./season/"$ep"donesizeA=$(du -h --max-depth=1 ./season | awk '{print $1}' | tr -d "a-zA-Z" |sed "s/\..*//g")sizeB=$(find ./season -type f | wc -l)sizeB=`expr $sizeB \* 2`if [[ $sizeA -le $sizeB ]] then echo "该剧集可能没有字幕文件" else echo ""fi#yum install -y p7zip*#apt install -y p7zip*rm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中,若文件皆为空白,则说明该番剧没有字幕文件!"echo "输入番剧地址:(结尾为带md字眼的链接,如https://www.bilibili.com/bangumi/media/md28234736/"read -p "请输入:" videourlwget -N --no-check-certificate -O index.zip "$videourl" 7z x index.zipseason_id=$( grep -o "season_id.........season_status" index )season_id=`echo "$season_id" | tr -cd "[0-9]" `echo "season_id是:"$season_idwget -N --no-check-certificate -O season.json "https://api.bilibili.com/pgc/web/season/section?season_id=$season_id"sed -i 's/{\"aid/\n{\"aid/g' season.jsonsed -i '1d' season.jsonsed -i 's/{\"aid\"\:/◎◎◎/g' season.jsonsed -i 's/\,\"badge\"\:/\n☆☆☆/g' season.jsonsed -i 's/\"cid\"\:/\n△△△/g' season.jsonsed -i 's/\,\"cover\"/\n☆☆☆/g' season.jsonsed -i '/☆☆☆/d' season.jsonsed -i 's/◎◎◎/https\:\/\/api.bilibili.com\/x\/player\/v2\?aid\=/g' season.jsonsed -i 's/△△△/\&cid\=/g' season.jsonsed -i ':a;N;s/\n//;ta' season.jsonsed -i 's/https/\nhttps/g' season.jsonsed -i '1d' season.jsonii="0"cclink=""rm -rf seasonmkdir seasonfor line in $(cat season.json) do ii=`expr $ii + 1` echo 第$ii集$line ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/"$ep" "$line" sed -i 's/\"subtitle_url\"\:\"/\nhttps\:/g' ./season/"$ep" sed -i 's/\"\,\"type/\n/g' ./season/"$ep" sed -i '/id_str/d' ./season/"$ep" sed -i '/bvid/d' ./season/"$ep" cclink=$( cat ./season/"$ep" | head -n 1 ) wget -N --no-check-certificate -O ./season/"$ep".bcc "$cclink" rm -rf ./season/"$ep"donesizeA=$(du -h --max-depth=1 ./season | awk '{print $1}' | tr -d "a-zA-Z" |sed "s/\..*//g")sizeB=$(find ./season -type f | wc -l)sizeB=`expr $sizeB \* 2`if [[ $sizeA -le $sizeB ]] then echo "该剧集可能没有字幕文件" else echo ""fi运行脚本前请安装7z工具, centos就直接 yum install -y p7zip* debian就 apt install -y p7zip*
运行之后会在脚本运行目录下生成一个season文件夹,其中有带数字排序的.bcc文件,这就是下载下来的字幕文件了,有简体繁体两种字幕的剧集会保留只简体,只有繁体的那就只有繁体
但是此时还是不能直接拖到视频工具里直接播放的,因为BCC并不是通用字幕文件,我们还需要转码
使用小工具“字幕文件BCC格式转SRT格式”直接把工具丢在字幕文件夹里就可以批量全部转换为srt格式
香港IP即可,免费视频网站,会员去广告,下载下来为srt格式。
Viu.com是香港电讯盈科媒体有限公司推出,针对香港、东南亚、南亚、中东及南非市场的免费OTT平台影片网站,于2015年10月26日启用。Viu在平台上提供亚洲剧集及日本动画予使用者收看,在部分海外平台则与当地的电视台及内容提供者合作,提供在地化的本地节目予当地的观众收看。由于在香港同时提供电视台ViuTV及OTT平台Viu服务,因而此平台被称为“黄Viu”作分别。
此网站看电视无需vip也无需解锁,只需要在巴林,埃及,香港,印度尼西亚,约旦,科威特,马来西亚,缅甸,阿曼,菲律宾,卡塔尔,沙特阿拉伯,新加坡,南非,泰国,阿联酋 任意地区的IP就能访问,无需家宽,IDC也可以访问。
推荐使用香港ip访问,目前不清楚更换其他地区IP是否会改变字幕语言。
目前测试了几个番剧。比如 《天才王子的赤字國家重生術》是可以正常下载的,在网站搜索剧集时请使用繁体关键字搜索,任意一集的页面都可以抓取全集字幕。
rm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中"echo "输入剧集地址:(链接中为带“vod/数字”的链接,任意一集皆可,如https://www.viu.com/ott/hk/zh-hk/vod/430585/"read -p "请输入:" videourlwget -N --no-check-certificate -O index.html "$videourl"sed -i 's/javascript\:initVideoPlay/javascript\:initVideoPlay\n◎◎◎/g' index.htmlgrep '◎◎◎' index.html > index.txtsed -i 's/\,/\n\,/g' index.txtgrep '◎◎◎' index.txt > index2.txtsed -i 's/^..........//' index2.txtawk '{print "https://www.viu.com/ott/hk/index.php?area_id=1&language_flag_id=1&r=vod/ajax-detail&platform_flag_label=web&product_id=" $0}' index2.txt > index3.txtii=$(awk '{print NR}' index3.txt|tail -n1)ep=""rm -rf seasonmkdir seasonfor line in $(cat index3.txt) do ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/EP"$ep".html "$line" sed -i 's/\,\"url\"\:\"/\nVVV/g' ./season/EP"$ep".html sed -i 's/\"\,\"subtitle_url/\n/g' ./season/EP"$ep".html grep 'VVV' ./season/EP"$ep".html > ./season/EP"$ep"A.html sed -i 's/VVV//g' ./season/EP"$ep"A.html sed -i "s:\\\::g" ./season/EP"$ep"A.html sed -i '2,$d' ./season/EP"$ep"A.html srturl=$(cat ./season/EP"$ep"A.html) wget -N --no-check-certificate -O ./season/EP"$ep".srt "$srturl" ii=`expr $ii - 1`donerm -rf ./season/g")sizeB=$(find ./season -type f | wc -l)sizeB=`expr $sizeB \* 2`if [[ $sizeA -le $sizeB ]] then echo "该剧集可能没有字幕文件" else echo ""firm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中"echo "输入剧集地址:(链接中为带“vod/数字”的链接,任意一集皆可,如https://www.viu.com/ott/hk/zh-hk/vod/430585/"read -p "请输入:" videourlwget -N --no-check-certificate -O index.html "$videourl"sed -i 's/javascript\:initVideoPlay/javascript\:initVideoPlay\n◎◎◎/g' index.htmlgrep '◎◎◎' index.html > index.txtsed -i 's/\,/\n\,/g' index.txtgrep '◎◎◎' index.txt > index2.txtsed -i 's/^..........//' index2.txtawk '{print "https://www.viu.com/ott/hk/index.php?area_id=1&language_flag_id=1&r=vod/ajax-detail&platform_flag_label=web&product_id=" $0}' index2.txt > index3.txtii=$(awk '{print NR}' index3.txt|tail -n1)ep=""rm -rf seasonmkdir seasonfor line in $(cat index3.txt) do ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/EP"$ep".html "$line" sed -i 's/\,\"url\"\:\"/\nVVV/g' ./season/EP"$ep".html sed -i 's/\"\,\"subtitle_url/\n/g' ./season/EP"$ep".html grep 'VVV' ./season/EP"$ep".html > ./season/EP"$ep"A.html sed -i 's/VVV//g' ./season/EP"$ep"A.html sed -i "s:\\\::g" ./season/EP"$ep"A.html sed -i '2,$d' ./season/EP"$ep"A.html srturl=$(cat ./season/EP"$ep"A.html) wget -N --no-check-certificate -O ./season/EP"$ep".srt "$srturl" ii=`expr $ii - 1`donerm -rf ./season/g")sizeB=$(find ./season -type f | wc -l)sizeB=`expr $sizeB \* 2`if [[ $sizeA -le $sizeB ]] then echo "该剧集可能没有字幕文件" else echo ""firm -rf index*rm -rf season*echo "下载的字幕文件将会存放在season目录中"echo "输入剧集地址:(链接中为带“vod/数字”的链接,任意一集皆可,如https://www.viu.com/ott/hk/zh-hk/vod/430585/"read -p "请输入:" videourlwget -N --no-check-certificate -O index.html "$videourl"sed -i 's/javascript\:initVideoPlay/javascript\:initVideoPlay\n◎◎◎/g' index.htmlgrep '◎◎◎' index.html > index.txtsed -i 's/\,/\n\,/g' index.txtgrep '◎◎◎' index.txt > index2.txtsed -i 's/^..........//' index2.txtawk '{print "https://www.viu.com/ott/hk/index.php?area_id=1&language_flag_id=1&r=vod/ajax-detail&platform_flag_label=web&product_id=" $0}' index2.txt > index3.txtii=$(awk '{print NR}' index3.txt|tail -n1)ep=""rm -rf seasonmkdir seasonfor line in $(cat index3.txt) do ep=$( printf "%02d\n" $ii ) wget -N --no-check-certificate -O ./season/EP"$ep".html "$line" sed -i 's/\,\"url\"\:\"/\nVVV/g' ./season/EP"$ep".html sed -i 's/\"\,\"subtitle_url/\n/g' ./season/EP"$ep".html grep 'VVV' ./season/EP"$ep".html > ./season/EP"$ep"A.html sed -i 's/VVV//g' ./season/EP"$ep"A.html sed -i "s:\\\::g" ./season/EP"$ep"A.html sed -i '2,$d' ./season/EP"$ep"A.html srturl=$(cat ./season/EP"$ep"A.html) wget -N --no-check-certificate -O ./season/EP"$ep".srt "$srturl" ii=`expr $ii - 1`donerm -rf ./season/g")sizeB=$(find ./season -type f | wc -l)sizeB=`expr $sizeB \* 2`if [[ $sizeA -le $sizeB ]] then echo "该剧集可能没有字幕文件" else echo ""fi下载下来的字幕文件将会存放在season目录中 ,下载下来就是srt格式,播放器可正常加载
[免费VPS]历史优惠活动内容
猜你可能想看的VPS
- 欧路云:美国特价云服务器/50M带宽8元/月起;香港云服务器月付15元起 美国VPS[主机]
- 吸血鬼崛起服务器怎么快速搭建? 全球[VPS测评]
- 免备案服务器对权重和网站排名有影响吗? 全球[VPS测评]
- 2.45亿、成都公安(大数据基座-服务器)采购:神码、虹信、海康、超聚变 全球[VPS测评]
- 快速云:云计算分类和云计算的特点 全球[VPS测评]
- 跨境电商周报丨拼多多布局跨境电商平台;Shopify将推出新平台支持网红 全球[VPS测评]
- 实例 GIA0910629396 重启失败,原因:sudo: unabl 全球[VPS测评]
- HostXen:双十一新用户香港、日本vps,送20元代金券,充值300 日本VPS[主机]
- 六六云,2核2G香港云服务器/1000GB流量/50Mbps端口/KVM 香港VPS[主机]
- 企鹅小屋:香港VPS限时3折优惠,香港沙田CN2,原生IP,年付486. 香港VPS[主机]
- 品光网络怎么样?香港美国服务器/云/高防,开年采购3.5折起 美国VPS[主机]
- 56云服务器怎么样?56云免备案香港云服务器价格多少钱? 香港VPS[主机]
- EdgeNat双十二优惠:韩国/香港/美国全场VPS年付,2核2G2M仅 韩国VPS[主机]
- 六六云:1核1GB/15GB空间/1T流量/100Mbps/KVM/香港 虚拟空间(主机)
- 阳帝云:香港大宽带vps仅15元/月;美国vps200G防御仅28元/月 美国VPS[主机]
- 磐逸云:深圳/大连/成都/香港机房vps,1核1G3M仅26元/月,65 香港VPS[主机]
- HostKvm:1核/4G/30G硬盘/750G/20Mbps/香港kv 香港VPS[主机]
- 酷锐云:元旦钜惠_美国CN2VPS低至20元/月_1核2G香港云主机低至 美国VPS[主机]
- 腾讯云香港/韩国/日本免备案服务器优惠促销活动 日本VPS[主机]
- tmhhost:香港安畅机房三网CN2 GIA VPS,月付45起;美国 美国VPS[主机]
- 无忧云:雅安/德阳100G高防云主机月付78元起,香港CN2云服务器月付 香港VPS[主机]
- pittqiao:彰化HiNet/台北CN2/东京NTT/上海茂名联通C 全球[VPS测评]
- ucloud云主机怎么样?ucloud云服务器1核2G仅52元/年起;香 香港VPS[主机]
- UCloud:香港云服务器,1核1G内存89元/年起(可选购3年/CN2 香港VPS[主机]
- MineServer:日本CN2云主机/香港CN2云主机,大带宽vps, 日本VPS[主机]
- VoLLCloud:香港1核/1G/大带宽VPS,年付赠送1个月,限购限 香港VPS[主机]
- 特网云:高防香港云主机/CN2/真实防御/30G高防御/金盾防护无视CC 香港VPS[主机]
- 云计算的大门依旧没向雷军敞开 全球[VPS测评]
- 狗云DogYun,香港cn2云服务器/优惠码/流量包,按小时计费云服务器 香港VPS[主机]
- 瓜云互联怎么样?香港/美国洛杉矶CN2高防vps 50G月付34元 美国VPS[主机]
转载请注明原文地址: http://140.238.13.167:12355/read-164519.html











