本文可以教你批量下载YayPonies的资源,YayPonies主要是英语资源,大部分资源包含英语字幕轨。
这篇文章已经咕了一个月了,我决定来填一下坑,让小白看起来更简单。
本操作适合有一定基础的电脑端用户使用,手机端不支持。如果你想开始下面的操作,请找一台电脑进行操作。
先安装一个aria2 (如果你有了那就跳过这个部分):
aria2是一款开源、轻量级的多协议命令行下载工具。你可以把它安装在你的路由器,下载机,服务器,电脑,甚至手机上。
下面以Windows电脑作为例子,如果你使用的是macOS或者Linux,我想我不说你也知道怎么安装的了。(一条命令的事)
下载这个文件:aria2.zip 并解压到一个你喜欢的地方
然后你就会得到这样的一个目录树:
aria2│ aria2.session│ aria2c.exe│ aria2关闭.bat│ aria2启动.VBS│ AUTHORS│ ChangeLog│ config.conf│ COPYING│ LICENSE.OpenSSL│ log.txt│└─downloads其中 downloads 文件夹是默认的下载路径。你也可以用文本编辑器打开 config.conf 来修改设置,双击 aria2启动.VBS 即可启动aria2。(不会打开任何窗口,点完就可以了)
然后浏览器打开这个:Aria2 WebUI 在”设置” -> “连接设置” 中 “主机” 后后面填写 127.0.0.1 在 “端口” 后面填入 6800 点击 “保存连接设置”。
这样aria2就安装好了,是不是很简单呢~
获取下载的内容:
目前脚本支持Episodes(视频),Books/Comics(书和漫画),点击链接即可打开。
选择要下载的分类,视频这里我推荐 HEVC 的版本(h265在相同画质的情况下文件更小),如果你使用一台比较老的设备进行观看,请选择h264。选好后点击 Get Ponies!
我建议使用Chrome浏览器以获取更好的体验
打开浏览器开发者工具,大部分的系统可以通过 F12 打开(macOS请使用 ⌘Command + ⌥Option + I),切换到 Console 标签(控制台),在下面复制对应的代码,粘贴到控制台中,按下回车,这时会输出一些下载地址,把输出的内容复制下来。
回到打开的 Aria2 WebUI,点击 “添加” -> “使用链接”,粘贴刚刚复制的内容,点击 开始,就开始下载啦~
var out = "";for(var i=1; i < $("#links").children[2].children[0].children.length; i++){var t = $("#links").children[2].children[0].children[i];if (t.children[2].children.length > 1){out += t.children[2].children[1].href + " " + t.children[2].children[0].href + " --out=" + ($("select").options[$("select").selectedIndex].innerHTML + t.children[0].children[0].innerHTML).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".mkv\";} else {out += t.children[2].children[0].href + " --out=" + ($("select").options[$("select").selectedIndex].innerHTML + t.children[0].children[0].innerHTML).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".mkv\";}}console.log(out);
EPUB:
var out = "";for(var i=1; i < $("#links").children[2].children[0].children.length; i++){var t = $("#links").children[2].children[0].children[i];if (t.children[2].children.length > 5) {out += t.children[2].children[1].href + " " + t.children[2].children[0].href + " --out=" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".epub\";} else {out += t.children[2].children[0].href + " --out=" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".epub\";}}console.log(out);PDF:
var out = "";for(var i=1; i < $("#links").children[2].children[0].children.length; i++){var t = $("#links").children[2].children[0].children[i];if (t.children[2].children.length > 5) {out += t.children[2].children[4].href + " " + t.children[2].children[3].href + " --out=" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".pdf\";} else {out += t.children[2].children[2].href + " --out=" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".pdf\";}}console.log(out);CBZ:
var out = "";for(var i=1; i < $("#links").children[2].children[0].children.length; i++){var t = $("#links").children[2].children[0].children[i];if (t.children[2].children.length > 5) {out += t.children[2].children[7].href + " " + t.children[2].children[6].href + " --out=" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".cbz\";} else {out += t.children[2].children[4].href + " --out='" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".cbz'\";}}console.log(out);MOBI:
var out = "";for(var i=1; i < $("#links").children[2].children[0].children.length; i++){var t = $("#links").children[2].children[0].children[i];if (t.children[2].children.length > 5) {out += t.children[2].children[7].href + " " + t.children[2].children[6].href + " --out=" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".mobi\";} else {out += t.children[2].children[4].href + " --out=" + (t.children[0].innerText).replace(/[?<>\'\"]/g,'').replace(/[/\\|:*\s]/g,'_').replace('_-_','-').replace(/(_)\1+/g,'_') + ".mobi\";}}console.log(out);原文地址:https://zyyme.com/2018/10/12/yayponies-download-shortcut/
如果咩咩的文章对您有帮助,您可以 请我喝牛奶