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
- Ubuntu 系统更新提示 Invalid operation upda全球[VPS测评]
- 优惠 OneVPS→日本机房 VPS 全线降价 512M 2T 流量套餐日本VPS[主机]
- 搬瓦工 IP 地址 ping 不通的正确检查方式全球[VPS测评]
- DediPath 美国 G 口无限流量 VPS 速度及综合性能测评,便宜美国VPS[主机]
- TmhHost→洛杉矶 Cera 洛杉矶安畅(CN2 GIA)九折 月付全球[VPS测评]
- Hosteons→首付 8 折 免费升级套餐 KVM 或者 OpenVZ全球[VPS测评]
- EUserv→德国独服 1Gbps 带宽 不限流量 免费 20 个 IP全球[VPS测评]
- 劳动节 极光 KVM→五一劳动节专场 日本 美西 CN2 移动 CMI 日本VPS[主机]
- 稳定便宜 腾讯云→99 元 年的套餐又开始秒杀了 国内起步做站必选套餐全球[VPS测评]
- VULTR→KVM 月付 3.5 美元起 16 个机房 支持支付宝微信全球[VPS测评]
- VirMach→$37 月-E3 1240 16GB 1TB 10TB 全球[VPS测评]
- JQuery ajax 中 serialize()方法增加自定义参数全球[VPS测评]
- Bootstrap datepicker 选择日期后自动隐藏(关闭)全球[VPS测评]
- Krypt 新加坡 KVM 月付 15 美元起 可选 PCCW 中国移动全球[VPS测评]
- 知更鸟Begin WordPress主题美化修改教程全球[VPS测评]
- WordPress 5.2 Beta1发布测试,新增古腾堡编辑器区块管理全球[VPS测评]
- 使用测速脚本对国外VPS服务器进行测速全球[VPS测评]
- Coalcloud-碳云全球应用加速 流量转发(充值赠金)全球[VPS测评]
- HKServerSolution → 4G内存 50G SSD 100M全球[VPS测评]
- CloudCone 512M 内存 10G SSD 512G流量 洛杉矶全球[VPS测评]
- 为什么阿里云、腾讯云卖服务器可以挣到钱?全球[VPS测评]
- 奇异互动,2核4G香港云服务器仅655元/年,注册领550元新手大礼包香港VPS[主机]
- 吸血鬼崛起服务器怎么快速搭建?全球[VPS测评]
- 消费复苏形势良好,我们将多措并举实施扩大内需政策全球[VPS测评]
- 六六云,2核2G香港云服务器/1000GB流量/50Mbps端口/KVM香港VPS[主机]
- 小欢互联:洛杉矶高防vps年付138元,香港CN2线路月付8元起,1核/香港VPS[主机]
- wikihost,微基主机服务,100M带宽香港tudcloud,5G防香港VPS[主机]
- 中国云计算,能啃的只剩硬骨头了全球[VPS测评]
- 恒星云:喜迎新春香港CN2云服务器,首月9.9元;深圳2核4G云服务器仅香港VPS[主机]
- 轻云互联,香港VPS月付22元 美国VPS月付19元美国VPS[主机]
转载请注明原文地址:http://140.238.13.167:12355/read-164370.html











