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

www.gycq.vip 评论区 #894

Open
zhangminghao1989 opened this issue Mar 8, 2025 · 0 comments
Open

www.gycq.vip 评论区 #894

zhangminghao1989 opened this issue Mar 8, 2025 · 0 comments
Labels

Comments

@zhangminghao1989
Copy link
Contributor

HAR 模板名称

www.gycq.vip

作者信息

No response

模板备注及说明

公益传奇网每日登录领取金币

HAR 文件名

www.gycq.vip.har

其他信息

HAR 模板内容

[
    {
        "request": {
            "method": "GET",
            "url": "https://www.gycq.vip/home.php?mod=spacecp&ac=credit",
            "headers": [
                {
                    "name": ":method",
                    "value": "GET"
                },
                {
                    "name": "accept",
                    "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
                },
                {
                    "name": "accept-encoding",
                    "value": "gzip, deflate, br, zstd"
                },
                {
                    "name": "accept-language",
                    "value": "zh-CN,zh-HK;q=0.9,zh-TW;q=0.8,zh;q=0.7,en;q=0.6,en-GB;q=0.5,en-US;q=0.4"
                },
                {
                    "name": "cache-control",
                    "value": "max-age=0"
                },
                {
                    "name": "dnt",
                    "value": "1"
                },
                {
                    "name": "user-agent",
                    "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0"
                },
                {
                    "name": "Cookie\n",
                    "value": "{{cookie}}\n"
                }
            ],
            "cookies": [

            ]
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [
                {
                    "re": "您需要先登录才能继续本操作",
                    "from": "content"
                }
            ],
            "extract_variables": [
                {
                    "name": "log_value",
                    "re": "金币: </em>(\\d+?)  &nbsp;",
                    "from": "content"
                }
            ]
        }
    },
    {
        "comment": "生成日志",
        "request": {
            "method": "POST",
            "url": "api://util/urldecode",
            "headers": [

            ],
            "cookies": [

            ],
            "data": "content=您的金币为: {{log_value}} 枚"
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "\"状态\": \"200\"",
                    "from": "content"
                }
            ],
            "failed_asserts": [

            ],
            "extract_variables": [
                {
                    "name": "__log__",
                    "re": "\"转换后\": \"(.*)\"",
                    "from": "content"
                }
            ]
        }
    }
]
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

1 participant