qd-today / templates

基于开源新版 QD 框架站发布的公共har模板库,仅供示例
1.07k stars 294 forks source link

海胆之家haidan.video 评论区 #421

Open zhaoyan42 opened 1 year ago

zhaoyan42 commented 1 year ago

HAR 模板名称

海胆之家haidan.video

作者信息

zhaoyan42

模板备注及说明

https://www.haidan.video/ 打卡模板,根据pttime模板修改而来

HAR 文件名

海胆之家haidan.video.har

其他信息

暂无

HAR 模板内容

[
    {
        "request": {
            "method": "GET",
            "url": "https://www.haidan.video/signin.php",
            "headers": [
                {
                    "name": ":method",
                    "value": "GET"
                },
                {
                    "name": ":authority",
                    "value": "www.haidan.video"
                },
                {
                    "name": ":scheme",
                    "value": "https"
                },
                {
                    "name": ":path",
                    "value": "/signin.php"
                },
                {
                    "name": "upgrade-insecure-requests",
                    "value": "1"
                },
                {
                    "name": "accept",
                    "value": "*/*"
                },
                {
                    "name": "accept-encoding",
                    "value": "gzip, deflate, br"
                },
                {
                    "name": "accept-language",
                    "value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
                },
                {
                    "name": "cookie",
                    "value": "{{cookie}}"
                },
                {
                    "name": "referer",
                    "value": "https://www.haidan.video/index.php"
                },
                {
                    "name": "sec-ch-ua",
                    "value": "\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Microsoft Edge\";v=\"116\""
                },
                {
                    "name": "sec-ch-ua-mobile",
                    "value": "?0"
                },
                {
                    "name": "sec-ch-ua-platform",
                    "value": "\"Windows\""
                },
                {
                    "name": "sec-fetch-dest",
                    "value": "empty"
                },
                {
                    "name": "sec-fetch-mode",
                    "value": "cors"
                },
                {
                    "name": "sec-fetch-site",
                    "value": "same-origin"
                },
                {
                    "name": "user-agent",
                    "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36"
                },
                {
                    "name": "x-requested-with",
                    "value": "XMLHttpRequest"
                }
            ],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "302",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": []
        }
    },
    {
        "request": {
            "method": "GET",
            "url": "https://www.haidan.video/index.php",
            "headers": [
                {
                    "name": ":method",
                    "value": "GET"
                },
                {
                    "name": ":authority",
                    "value": "www.haidan.video"
                },
                {
                    "name": ":scheme",
                    "value": "https"
                },
                {
                    "name": ":path",
                    "value": "/signin.php"
                },
                {
                    "name": "upgrade-insecure-requests",
                    "value": "1"
                },
                {
                    "name": "accept",
                    "value": "*/*"
                },
                {
                    "name": "accept-encoding",
                    "value": "gzip, deflate, br"
                },
                {
                    "name": "accept-language",
                    "value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
                },
                {
                    "name": "cookie",
                    "value": "{{cookie}}"
                },
                {
                    "name": "referer",
                    "value": "https://www.haidan.video/index.php"
                },
                {
                    "name": "sec-ch-ua",
                    "value": "\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Microsoft Edge\";v=\"116\""
                },
                {
                    "name": "sec-ch-ua-mobile",
                    "value": "?0"
                },
                {
                    "name": "sec-ch-ua-platform",
                    "value": "\"Windows\""
                },
                {
                    "name": "sec-fetch-dest",
                    "value": "empty"
                },
                {
                    "name": "sec-fetch-mode",
                    "value": "cors"
                },
                {
                    "name": "sec-fetch-site",
                    "value": "same-origin"
                },
                {
                    "name": "user-agent",
                    "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36"
                },
                {
                    "name": "x-requested-with",
                    "value": "XMLHttpRequest"
                }
            ],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "re": "class='User_Name'.*?<b>(.*)+?</b>",
                    "from": "content",
                    "name": "_name"
                },
                {
                    "re": "等级积分:.*\\n.*\\n.*?<span>.*?([\\d.]+)",
                    "from": "content",
                    "name": "jf"
                },
                {
                    "re": "魔力值:.*\\n.*?([\\d,.]+\\([\\d.]/h\\))",
                    "from": "content",
                    "name": "ml"
                },
                {
                    "re": "分享率:.*?([\\d,.]+)",
                    "from": "content",
                    "name": "fx"
                },
                {
                    "re": "上传量:.*?([\\d,.]+ [KMG]B)",
                    "from": "content",
                    "name": "sc"
                },
                {
                    "re": "下载量:.*?([\\d,.]+ [KMG]B)",
                    "from": "content",
                    "name": "xz"
                },
                {
                    "re": "class=\"dt_button\".*value=\"([^\"]*)\"",
                    "from": "content",
                    "name": "dk"
                }
            ]
        }
    },
    {
        "comment": "unicode转换",
        "request": {
            "method": "GET",
            "url": "api://util/unicode?content=haidan.video%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E6%89%93%E5%8D%A1%E7%8A%B6%E6%80%81%3A{{dk|urlencode}}%E3%80%91%E3%80%90%E7%AD%89%E7%BA%A7%E7%A7%AF%E5%88%86%3A{{jf|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%5Cr%5Cn%E3%80%90%E5%88%86%E4%BA%AB%E7%8E%87%3A{{fx|urlencode}}%E3%80%91%E3%80%90%E4%B8%8A%E4%BC%A0%E9%87%8F%3A{{sc|urlencode}}%E3%80%91%E3%80%90%E4%B8%8B%E8%BD%BD%E9%87%8F%3A{{xz|urlencode}}%E3%80%91",
            "headers": [],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                },
                {
                    "re": "\"状态\": \"200\"",
                    "from": "content"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "re": "\"转换后\": \"(.+)\"",
                    "from": "content",
                    "name": "__log__"
                }
            ]
        }
    }
]
davidelectricfree commented 2 weeks ago

好像失效了,有大佬看看吗