网盘链接识别

识别网页中显示的网盘链接,目前包括百度网盘、蓝奏云、天翼云、中国移动云盘(原:和彩云)、阿里云、文叔叔、奶牛快传、123盘、腾讯微云、迅雷网盘、115网盘、夸克网盘、城通网盘(部分)、坚果云、UC网盘、BT磁力,支持蓝奏云、天翼云(需登录)、123盘、奶牛、UC网盘(需登录)、坚果云(需登录)和阿里云盘(需登录,且限制在网盘页面解析)直链获取下载,页面动态监控加载的链接,可自定义规则来识别小众网盘/网赚网盘或其它自定义的链接。

< Feedback on 网盘链接识别

Review: Good - script works

§
Posted: 08.04.2024

感谢大佬的脚本!非常好用,再也不用一个个的点开网页去手动复制了
美中不足的是,现在有很多资源都有解压密码,请问有方法可以一起识别吗
我自己试着编辑了一下,完全没有效果,大佬有空的时候麻烦解答一下我的疑惑

WhiteSevsAuthor
§
Posted: 08.04.2024

感谢大佬的脚本!非常好用,再也不用一个个的点开网页去手动复制了美中不足的是,现在有很多资源都有解压密码,请问有方法可以一起识别吗我自己试着编辑了一下,完全没有效果,大佬有空的时候麻烦解答一下我的疑惑

给个示例看看

§
Posted: 08.04.2024

比如这个页面,我装了悬浮预览,再配合上您的脚本,可以直接在上一级的主页里获取到
https://fuliba2023.net/torrent.html

WhiteSevsAuthor
§
Posted: 08.04.2024

添加自定义规则

{
    "key": "baiduWithZipAccessCode",
    "icon": "baidu",
    "regexp": [
        {
            "link_innerText": "pan.baidu.com/s/[0-9a-zA-Z-_]{6,24}([\\s\\S]{0,20}(密码|访问码|提取码|\\?pwd=)[\\s\\S]{0,10}[0-9a-zA-Z]{4}|)[\\s\\S]{0,20}解压密码.*[0-9a-zA-Z\\.]+",
            "link_innerHTML": "pan.baidu.com/s/[0-9a-zA-Z-_]{6,24}([\\s\\S]{0,100}(密码|访问码|提取码|\\?pwd=)[\\s\\S]{0,15}[0-9a-zA-Z]{4}|)[\\s\\S]{0,20}解压密码.*[0-9a-zA-Z\\.]+",
            "shareCode": "pan.baidu.com/s/([0-9a-zA-Z-_]+)",
            "shareCodeNeedRemoveStr": "pan.baidu.com/s/",
            "checkAccessCode": "(密码|访问码|提取码|pwd=)[\\s\\S]+",
            "accessCode": "([0-9a-zA-Z]{4})",
            "paramMatch": "解压密码.*?([0-9a-zA-Z]+)",
            "uiLinkShow": "pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}",
            "blank": "https://pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}",
            "copyUrl": "https://pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}"
        }
    ],
    "setting": {
        "name": "百度网盘带解压密码",
        "enable": true,
        "isBlank": false,
        "openBlankWithCopyAccessCode": true
    }
}
§
Posted: 09.04.2024

添加自定义规则

{
    "key": "baiduWithZipAccessCode",
    "icon": "baidu",
    "regexp": [
        {
            "link_innerText": "pan.baidu.com/s/[0-9a-zA-Z-_]{6,24}([\\s\\S]{0,20}(密码|访问码|提取码|\\?pwd=)[\\s\\S]{0,10}[0-9a-zA-Z]{4}|)[\\s\\S]{0,20}解压密码.*[0-9a-zA-Z\\.]+",
            "link_innerHTML": "pan.baidu.com/s/[0-9a-zA-Z-_]{6,24}([\\s\\S]{0,100}(密码|访问码|提取码|\\?pwd=)[\\s\\S]{0,15}[0-9a-zA-Z]{4}|)[\\s\\S]{0,20}解压密码.*[0-9a-zA-Z\\.]+",
            "shareCode": "pan.baidu.com/s/([0-9a-zA-Z-_]+)",
            "shareCodeNeedRemoveStr": "pan.baidu.com/s/",
            "checkAccessCode": "(密码|访问码|提取码|pwd=)[\\s\\S]+",
            "accessCode": "([0-9a-zA-Z]{4})",
            "paramMatch": "解压密码.*?([0-9a-zA-Z]+)",
            "uiLinkShow": "pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}",
            "blank": "https://pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}",
            "copyUrl": "https://pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}"
        }
    ],
    "setting": {
        "name": "百度网盘带解压密码",
        "enable": true,
        "isBlank": false,
        "openBlankWithCopyAccessCode": true
    }
}

太感谢了!如果是其他网盘的话,是不是只要替换网盘地址也一样可以实现

WhiteSevsAuthor
§
Posted: 09.04.2024

添加自定义规则{
"key": "baiduWithZipAccessCode",
"icon": "baidu",
"regexp": [
{
"link_innerText": "pan.baidu.com/s/[0-9a-zA-Z-]{6,24}([\s\S]{0,20}(密码|访问码|提取码|\?pwd=)[\s\S]{0,10}[0-9a-zA-Z]{4}|)[\s\S]{0,20}解压密码.*[0-9a-zA-Z\.]+",
"link_innerHTML": "pan.baidu.com/s/[0-9a-zA-Z-
]{6,24}([\s\S]{0,100}(密码|访问码|提取码|\?pwd=)[\s\S]{0,15}[0-9a-zA-Z]{4}|)[\s\S]{0,20}解压密码.[0-9a-zA-Z\.]+",
"shareCode": "pan.baidu.com/s/([0-9a-zA-Z-_]+)",
"shareCodeNeedRemoveStr": "pan.baidu.com/s/",
"checkAccessCode": "(密码|访问码|提取码|pwd=)[\s\S]+",
"accessCode": "([0-9a-zA-Z]{4})",
"paramMatch": "解压密码.
?([0-9a-zA-Z]+)",
"uiLinkShow": "pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}",
"blank": "https://pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}",
"copyUrl": "https://pan.baidu.com/s/{#shareCode#}?pwd={#accessCode#} 解压密码: {#$1#}"
}
],
"setting": {
"name": "百度网盘带解压密码",
"enable": true,
"isBlank": false,
"openBlankWithCopyAccessCode": true
}
}

        太感谢了!如果是其他网盘的话,是不是只要替换网盘地址也一样可以实现  

看情况,其它网盘匹配解压密码的关键字不一定是解压密码

§
Posted: 09.04.2024
Edited: 09.04.2024

明白了,感谢您的解答!下面是夸克网盘带解压密码,有需要的自定义添加
{
"key": "kuakeWithZipAccessCode",
"icon": "kuake",
"regexp": [
{
"link_innerText": "quark.cn/s/[0-9a-zA-Z-_]{8,24}([\\s\\S]{0,20}(密码|访问码|提取码|\\?pwd=)[\\s\\S]{0,15[0-9a-zA-Z]{4}|)[\\s\\S]{0,20}解压.*[0-9a-zA-Z\\.]+",
"link_innerHTML": "quark.cn/s/[0-9a-zA-Z-_]{8,24}([\\s\\S]{0,100}(密码|访问码|提取码|\\?pwd=)[\\s\\S]{0,15[0-9a-zA-Z]{4}|)[\\s\\S]{0,20}解压.*[0-9a-zA-Z\\.]+",
"shareCode": "quark.cn/s/([0-9a-zA-Z-_]+)",
"shareCodeNeedRemoveStr": "quark.cn/s/",
"checkAccessCode": "(密码|访问码|提取码|\\password=)[\\s\\S]+",
"accessCode": "([0-9a-zA-Z]{4})",
"paramMatch": "解压.*?([0-9a-zA-Z\\.]+)",
"uiLinkShow": "quark.cn/s/{#shareCode#}?pwd={#accessCode#} 解压: {#$1#}",
"blank": "https://pan.quark.cn/s/{#shareCode#}?pwd={#accessCode#} 解压: {#$1#}",
"copyUrl": "https://pan.quark.cn/s/{#shareCode#}?pwd={#accessCode#} 解压: {#$1#}"
}
],
"setting": {
"name": "夸克网盘带解压密码",
"enable": true,
"isBlank": false,
"openBlankWithCopyAccessCode": true
}
}

Post reply

Sign in to post a reply.