mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-04-11 03:16:54 +00:00
Compare commits
3 Commits
999e260a60
...
80fa51fd0a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80fa51fd0a | ||
|
|
a170134456 | ||
|
|
ba76e0dc6c |
@@ -67,7 +67,6 @@ main分支依赖JDK17, 提供了JDK11分支[main-jdk11](https://github.com/qaiu/
|
|||||||
- [亿方云-fc](https://www.fangcloud.com/)
|
- [亿方云-fc](https://www.fangcloud.com/)
|
||||||
- [123云盘-ye](https://www.123pan.com/)
|
- [123云盘-ye](https://www.123pan.com/)
|
||||||
- ~[115网盘(失效)-p115](https://115.com/)~
|
- ~[115网盘(失效)-p115](https://115.com/)~
|
||||||
- ~[118网盘(已停服)-p118](https://www.118pan.com/)~
|
|
||||||
- [文叔叔-ws](https://www.wenshushu.cn/)
|
- [文叔叔-ws](https://www.wenshushu.cn/)
|
||||||
- [联想乐云-le](https://lecloud.lenovo.com/)
|
- [联想乐云-le](https://lecloud.lenovo.com/)
|
||||||
- [QQ邮箱云盘-qqw](https://mail.qq.com/)
|
- [QQ邮箱云盘-qqw](https://mail.qq.com/)
|
||||||
|
|||||||
@@ -218,11 +218,6 @@ public enum PanDomainTemplate {
|
|||||||
"(?<KEY>[0-9a-zA-Z_-]+)(\\?p=(?<PWD>\\w+))?"),
|
"(?<KEY>[0-9a-zA-Z_-]+)(\\?p=(?<PWD>\\w+))?"),
|
||||||
"https://474b.com/file/{shareKey}",
|
"https://474b.com/file/{shareKey}",
|
||||||
CtTool.class),
|
CtTool.class),
|
||||||
// https://xxx.118pan.com/bxxx
|
|
||||||
P118("118网盘",
|
|
||||||
compile("https://(?:[a-zA-Z\\d-]+\\.)?118pan\\.com/b(?<KEY>.+)"),
|
|
||||||
"https://qaiu.118pan.com/b{shareKey}",
|
|
||||||
P118Tool.class),
|
|
||||||
// https://www.vyuyun.com/s/QMa6ie?password=I4KG7H
|
// https://www.vyuyun.com/s/QMa6ie?password=I4KG7H
|
||||||
// https://www.vyuyun.com/s/QMa6ie/file?password=I4KG7H
|
// https://www.vyuyun.com/s/QMa6ie/file?password=I4KG7H
|
||||||
PVYY("微雨云存储",
|
PVYY("微雨云存储",
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
package cn.qaiu.parser.impl;
|
|
||||||
|
|
||||||
import cn.qaiu.entity.ShareLinkInfo;
|
|
||||||
import cn.qaiu.parser.PanBase;
|
|
||||||
import io.vertx.core.Future;
|
|
||||||
import io.vertx.core.buffer.Buffer;
|
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 118网盘解析
|
|
||||||
*/
|
|
||||||
public class P118Tool extends PanBase {
|
|
||||||
|
|
||||||
private static final String API_URL_PREFIX = "https://qaiu.118pan.com/ajax.php";
|
|
||||||
|
|
||||||
// private static final String
|
|
||||||
|
|
||||||
public P118Tool(ShareLinkInfo shareLinkInfo) {
|
|
||||||
super(shareLinkInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Future<String> parse() {
|
|
||||||
|
|
||||||
client.postAbs(API_URL_PREFIX)
|
|
||||||
.putHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
|
|
||||||
.sendBuffer(Buffer.buffer("action=load_down_addr1&file_id=" + shareLinkInfo.getShareKey()))
|
|
||||||
.onSuccess(res -> {
|
|
||||||
System.out.println(res.headers());
|
|
||||||
Pattern compile = Pattern.compile("href=\"([^\"]+)\"");
|
|
||||||
Matcher matcher = compile.matcher(res.bodyAsString());
|
|
||||||
if (matcher.find()) {
|
|
||||||
//c: 0x63
|
|
||||||
//o: 0x6F
|
|
||||||
//m: 0x6D
|
|
||||||
//1: 0x31
|
|
||||||
///: 0x2F
|
|
||||||
char[] chars1 = new char[]{99, 111, 109, 49, 47};
|
|
||||||
char[] chars2 = new char[]{99, 111, 109, 47};
|
|
||||||
String group = matcher.group(1).replace(String.valueOf(chars1), String.valueOf(chars2));
|
|
||||||
System.out.println(group);
|
|
||||||
complete(group);
|
|
||||||
} else {
|
|
||||||
fail();
|
|
||||||
}
|
|
||||||
}).onFailure(handleFail(""));
|
|
||||||
return future();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user