🚀
高性能解析
基于 Vert.x 构建,支持高并发请求处理
这是基于 netdisk-fast-download 项目的参考文档。
NFD Parser (netdisk-fast-download网盘直链云解析) 是一个能够将网盘分享下载链接转化为直链的云解析服务。支持多款云盘,包括蓝奏云、奶牛快传、移动云空间、小飞机盘、亿方云、123云盘、Cloudreve等,支持加密分享以及部分网盘文件夹分享。
your_host
指的是您的域名或者IP地址GET /parser?url=分享链接&pwd=密码
GET /d/网盘标识/分享key@密码
GET /json/parser?url=分享链接&pwd=密码
GET /json/网盘标识/分享key@密码
GET /json/getFileList?url=分享链接&pwd=密码
GET /v2/linkInfo?url=分享链接
GET /v2/statisticsInfo
{
"code": 200,
"msg": "success",
"success": true,
"count": 0,
"data": {
"shareKey": "lz:xxx",
"directLink": "下载直链",
"cacheHit": true,
"expires": "2024-09-18 01:48:02",
"expiration": 1726638482825
},
"timestamp": 1726637151902
}
{
"code": 200,
"msg": "success",
"success": true,
"count": 0,
"data": {
"downLink": "https://your-api-domain.com/d/fj/xx",
"apiLink": "https://your-api-domain.com/json/fj/xx",
"cacheHitTotal": 5,
"parserTotal": 2,
"sumTotal": 7,
"shareLinkInfo": {
"shareKey": "xx",
"panName": "小飞机网盘",
"type": "fj",
"sharePassword": "",
"shareUrl": "https://share.feijipan.com/s/xx",
"standardUrl": "https://www.feijix.com/s/xx",
"otherParam": {
"UA": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
},
"cacheKey": "fj:xx"
}
},
"timestamp": 1736489219402
}
{
"code": 200,
"msg": "success",
"success": true,
"data": [
{
"fileName": "xxx",
"fileId": "xxx",
"fileIcon": null,
"size": 999,
"sizeStr": "999 M",
"fileType": "file/folder",
"filePath": null,
"createTime": "17 小时前",
"updateTime": null,
"createBy": null,
"description": null,
"downloadCount": "下载次数",
"panType": "lz",
"parserUrl": "下载链接/文件夹链接",
"extParameters": null
}
]
}
{
"code": 200,
"msg": "success",
"success": true,
"count": 0,
"data": {
"parserTotal": 320508,
"cacheTotal": 5957910,
"total": 6278418
},
"timestamp": 1736489378770
}
# 获取直链JSON
curl "http://your_host/json/lz/ia2cntg"
# 直接跳转下载
curl -L "http://your_host/d/lz/ia2cntg"
# 360亿方云加密分享
curl "http://your_host/json/fc/e5079007dc31226096628870c7@QAIU"
# URL编码的分享链接
curl "http://your_host/json/parser?url=https%3A//lanzoux.com/ia2cntg"
# 带密码的分享链接
curl "http://your_host/json/parser?url=https://v2.fangcloud.com/sharing/e5079007dc31226096628870c7&pwd=QAIU"
// 解析分享链接
async function parseShareLink(shareUrl, password = '') {
const params = new URLSearchParams({
url: shareUrl
});
if (password) {
params.append('pwd', password);
}
const response = await fetch(`http://your_host/json/parser?${params}`);
const result = await response.json();
if (result.success) {
return result.data.directLink;
} else {
throw new Error(result.msg);
}
}
// 使用示例
parseShareLink('https://lanzoux.com/ia2cntg')
.then(directLink => {
console.log('直链:', directLink);
})
.catch(error => {
console.error('解析失败:', error);
});
网盘名称 | 免登陆下载分享 | 加密分享 | 初始网盘空间 | 单文件大小限制 |
---|---|---|---|---|
蓝奏云 | ✅ | ✅ | 不限空间 | 100M |
奶牛快传 | ✅ | ❌ | 10G | 不限大小 |
移动云云空间(个人版) | ✅ | ✅(密码可忽略) | 5G(个人) | 不限大小 |
小飞机网盘 | ✅ | ✅(密码可忽略) | 10G | 不限大小 |
360亿方云 | ✅ | ✅(密码可忽略) | 100G(须实名) | 不限大小 |
123云盘 | ✅ | ✅ | 2T | 100G(>100M需要登录) |
文叔叔 | ✅ | ✅ | 10G | 5GB |
Referer: https://cowtransfer.com/
本文档基于 qaiu/netdisk-fast-download 项目编写。
本文档为参考文档,具体实现和部署请参考原项目:netdisk-fast-download