Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keylol(原SteamCN蒸汽论坛) 评论区 #17

Open
AragonSnow opened this issue Jun 25, 2021 · 4 comments
Open

keylol(原SteamCN蒸汽论坛) 评论区 #17

AragonSnow opened this issue Jun 25, 2021 · 4 comments
Assignees
Labels

Comments

@AragonSnow
Copy link
Contributor

AragonSnow commented Jun 25, 2021

HAR 模板名称

keylol(原SteamCN蒸汽论坛)

作者信息

github-h

模板备注及说明

cookie

每日签到奖励

https://keylol.com

HAR 文件名

keylol(原SteamCN蒸汽论坛).har

HAR 模板内容

[
{
    "request":
    {
        "method": "GET",
        "url": "https://keylol.com/",
        "headers": [
        {
            "name": "Host",
            "value": "keylol.com"
        },
        {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        },
        {
            "name": "Accept",
            "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
        },
        {
            "name": "Accept-Language",
            "value": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"
        },
        {
            "name": "Accept-Encoding",
            "value": "gzip, deflate, br"
        },
        {
            "name": "Upgrade-Insecure-Requests",
            "value": "1"
        },
        {
            "name": "DNT",
            "value": "1"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        },
        {
            "name": "Cookie",
            "value": "{{cookie}}"
        },
        {
            "name": "Cache-Control",
            "value": "max-age=0"
        }],
        "cookies": [],
        "data": "",
        "mimeType": ""
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        }],
        "failed_asserts": [],
        "extract_variables": []
    }
},
{
    "request":
    {
        "method": "GET",
        "url": "https://keylol.com/home.php?mod=spacecp&ac=credit",
        "headers": [
        {
            "name": "Host",
            "value": "keylol.com"
        },
        {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        },
        {
            "name": "Accept",
            "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
        },
        {
            "name": "Accept-Language",
            "value": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"
        },
        {
            "name": "Accept-Encoding",
            "value": "gzip, deflate, br"
        },
        {
            "name": "Upgrade-Insecure-Requests",
            "value": "1"
        },
        {
            "name": "DNT",
            "value": "1"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        }],
        "cookies": [],
        "data": "",
        "mimeType": ""
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        }],
        "failed_asserts": [
        {
            "re": "您需要先登录才能继续本操作",
            "from": "content"
        }],
        "extract_variables": [
        {
            "re": "体力: </em>(.+?)点",
            "from": "content",
            "name": "log_value0"
        },
        {
            "re": "蒸汽: </em>(.+?)克",
            "from": "content",
            "name": "log_value"
        }]
    }
},
{
    "comment": "生成日志",
    "request":
    {
        "method": "POST",
        "url": "api://util/urldecode",
        "headers": [],
        "cookies": [],
        "data": "content=蒸汽: {{log_value}} 克  体力: {{log_value0}} 点"
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        },
        {
            "re": "\"状态\": \"200\"",
            "from": "content"
        }],
        "failed_asserts": [],
        "extract_variables": [
        {
            "name": "__log__",
            "re": "\"转换后\": \"(.*)\"",
            "from": "content"
        }]
    }
}]
@Showfom
Copy link

Showfom commented Jan 11, 2023

今天执行的时候失败

2023-01-11 08:03:22
日志:Failed at 2/3 request,
Fail assert: {"re": "您需要先登录才能继续本操作", "from": "content"} from failed_asserts,
Request URL: https://keylol.com/home.php?mod=spacecp&ac=credit

@github-h
Copy link
Contributor

今天执行的时候失败

2023-01-11 08:03:22
日志:Failed at 2/3 request,
Fail assert: {"re": "您需要先登录才能继续本操作", "from": "content"} from failed_asserts,
Request URL: https://keylol.com/home.php?mod=spacecp&ac=credit

cookie到期了呗

@Showfom
Copy link

Showfom commented Mar 10, 2023

今天执行的时候失败

2023-01-11 08:03:22
日志:Failed at 2/3 request,
Fail assert: {"re": "您需要先登录才能继续本操作", "from": "content"} from failed_asserts,
Request URL: https://keylol.com/home.php?mod=spacecp&ac=credit

cookie到期了呗

这是刚添加的第二天,然后又成功了,啥都没动过

@github-h
Copy link
Contributor

今天执行的时候失败

2023-01-11 08:03:22
日志:Failed at 2/3 request,
Fail assert: {"re": "您需要先登录才能继续本操作", "from": "content"} from failed_asserts,
Request URL: https://keylol.com/home.php?mod=spacecp&ac=credit

cookie到期了呗

这是刚添加的第二天,然后又成功了,啥都没动过

那个没事 因为网络波动 只要不是一直失败就没事

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants