qd-today / templates

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

恩山无线论坛 评论区 #58

Open github-h opened 3 years ago

github-h commented 3 years ago

HAR 模板名称

恩山无线论坛

作者信息

github-h

模板备注及说明

cookie

每日登录奖励 若签到不稳定也请自行添加hosts

https://www.right.com.cn/forum/forum.php

HAR 文件名

恩山无线论坛.har

HAR 模板内容

[
    {
        "comment": "每日登录",
        "request": {
            "method": "GET",
            "url": "https://www.right.com.cn/forum/forum.php",
            "headers": [
                {
                    "name": "Host",
                    "value": "www.right.com.cn"
                },
                {
                    "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": "Referer",
                    "value": "https://www.right.com.cn/forum/home.php?mod=spacecp&ac=usergroup"
                },
                {
                    "name": "DNT",
                    "value": "1"
                },
                {
                    "name": "Connection",
                    "value": "keep-alive"
                },
                {
                    "name": "Cookie",
                    "value": "{{cookie}}"
                },
                {
                    "name": "Upgrade-Insecure-Requests",
                    "value": "1"
                },
                {
                    "name": "Cache-Control",
                    "value": "max-age=0"
                }
            ],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": []
        }
    },
    {
        "comment": "获取积分",
        "request": {
            "method": "GET",
            "url": "https://www.right.com.cn/forum/home.php?mod=spacecp&ac=credit&showcredit=1&inajax=1",
            "headers": [
                {
                    "name": "Host",
                    "value": "www.right.com.cn"
                },
                {
                    "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": "*/*"
                },
                {
                    "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": "X-Requested-With",
                    "value": "XMLHttpRequest"
                },
                {
                    "name": "DNT",
                    "value": "1"
                },
                {
                    "name": "Connection",
                    "value": "keep-alive"
                },
                {
                    "name": "Referer",
                    "value": "https://www.right.com.cn/forum/home.php?mod=spacecp&ac=credit&showcredit=1"
                },
                {
                    "name": "Cookie",
                    "value": "{{cookie}}"
                }
            ],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "re": "<span id=\"hcredit_2\">(.+?)</span>",
                    "from": "content",
                    "name": "log_value"
                }
            ]
        }
    },
    {
        "comment": "生成日志",
        "request": {
            "method": "POST",
            "url": "api://util/urldecode",
            "headers": [],
            "cookies": [],
            "data": "content=恩山币: {{log_value}}"
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                },
                {
                    "re": "\"状态\": \"200\"",
                    "from": "content"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "name": "__log__",
                    "re": "\"转换后\": \"(.*)\"",
                    "from": "content"
                }
            ]
        }
    }
]
qzydustin commented 2 years ago

Failed at 2/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://www.right.com.cn/forum/home.php?mod=spacecp&ac=credit&showcredit=1&inajax=1&ajaxtarget=extcreditmenu_menu

出现错误

acooler15 commented 2 years ago

可能是cookie失效了,这个没有做cookie失效的相关校验。

---原始邮件--- 发件人: "Zhenyu @.> 发送时间: 2022年5月10日(周二) 凌晨2:28 收件人: @.>; 抄送: @.***>; 主题: Re: [qiandao-today/templates] 恩山无线论坛 评论区 (#58)

Failed at 2/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://www.right.com.cn/forum/home.php?mod=spacecp&amp;ac=credit&amp;showcredit=1&amp;inajax=1&amp;ajaxtarget=extcreditmenu_menu

出现错误

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

github-h commented 2 years ago

Failed at 2/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://www.right.com.cn/forum/home.php?mod=spacecp&ac=credit&showcredit=1&inajax=1&ajaxtarget=extcreditmenu_menu

出现错误

你要不要更新一下cookie试试 图片

qzydustin commented 2 years ago

更新cookie后成功

Xionghaizi001 commented 2 years ago

问一下,第三条那个生成日志的{{log_value}}从哪里要或者说填什么?

acooler15 commented 2 years ago

log_value 不需要填,是前几条请求生成的

---原始邮件--- 发件人: @.> 发送时间: 2022年6月19日(周日) 晚上10:07 收件人: @.>; 抄送: @.**@.>; 主题: Re: [qiandao-today/templates] 恩山无线论坛 评论区 (#58)

问一下,第三条那个生成日志的{{log_value}}从哪里要或者说填什么?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

dycwuxing commented 2 years ago

请问都需要哪些相关的值?现在right抓出来有一大堆啊

Zpipishrimp commented 1 year ago

Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Connection timed out after 30002 milliseconds, Request URL: https://www.right.com.cn/forum/forum.php

github-h commented 1 year ago

Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Connection timed out after 30002 milliseconds, Request URL: https://www.right.com.cn/forum/forum.php

图片

先自行测试你的网络跟恩山是不是通的 模板本身是没问题的

Zpipishrimp commented 1 year ago

Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Connection timed out after 30002 milliseconds, Request URL: https://www.right.com.cn/forum/forum.php

图片

先自行测试你的网络跟恩山是不是通的 模板本身是没问题的

感谢答复。已解决! 原因:在ip未被墙的情况下,国外vps需添加国内dns解析,否则某些国内网站无法访问。 解决方案:修改vps的dns解析,找出ping低的ip加入hosts。

clarkechan commented 1 year ago

Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Connection timed out after 30002 milliseconds, Request URL: https://www.right.com.cn/forum/forum.php

图片 先自行测试你的网络跟恩山是不是通的 模板本身是没问题的

感谢答复。已解决! 原因:在ip未被墙的情况下,国外vps需添加国内dns解析,否则某些国内网站无法访问。 解决方案:修改vps的dns解析,找出ping低的ip加入hosts。

请问hosts添加什么? vps ping域名后返回的?

github-h commented 1 year ago

Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Connection timed out after 30002 milliseconds, Request URL: https://www.right.com.cn/forum/forum.php

图片 先自行测试你的网络跟恩山是不是通的 模板本身是没问题的

感谢答复。已解决! 原因:在ip未被墙的情况下,国外vps需添加国内dns解析,否则某些国内网站无法访问。 解决方案:修改vps的dns解析,找出ping低的ip加入hosts。

请问hosts添加什么? vps ping域名后返回的?

他的意思应该是你国内本地ping的结果 然后给vps里的hosts添加 不过未来如果要是像吾爱那样上了ACL的话 就还是建议家宽或者国内vps

404gods commented 1 year ago

不能用了,报错 2023-06-27 11:51:35 日志:Failed at 2/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 521: Unknown, Request URL: https://www.right.com.cn/forum/home.php?mod=spacecp&ac=credit&showcredit=1&inajax=1&ajaxtarget=extcreditmenu_menu

acooler15 commented 1 year ago

不能用了,报错 2023-06-27 11:51:35 日志:Failed at 2/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 521: Unknown, Request URL: https://www.right.com.cn/forum/home.php?mod=spacecp&ac=credit&showcredit=1&inajax=1&ajaxtarget=extcreditmenu_menu

好像需要滑块验证

github-h commented 1 year ago

不能用了,报错 2023-06-27 11:51:35 日志:Failed at 2/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 521: Unknown, Request URL: https://www.right.com.cn/forum/home.php?mod=spacecp&ac=credit&showcredit=1&inajax=1&ajaxtarget=extcreditmenu_menu

等更新 已更新

tracy1949 commented 1 year ago

2023-08-04 11:32:28 日志:Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Connection timed out after 30001 milliseconds, Request URL: https://www.right.com.cn/forum/forum.php

github-h commented 1 year ago

2023-08-04 11:32:28 日志:Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Connection timed out after 30001 milliseconds, Request URL: https://www.right.com.cn/forum/forum.php

自己网络的问题自己想办法解决哦

StoneForests commented 7 months ago

最近几天一直报这个错误,能帮忙看看是啥原因不?在阿里云vps上部署的

`

Failed at 1/3 request,Fail assert: {"re": "200", "from": "status"} from success_asserts,Response Error : HTTP 502: Bad Gateway,Request URL: https://www.right.com.cn/forum/forum.php --

`

github-h commented 6 months ago

最近几天一直报这个错误,能帮忙看看是啥原因不?在阿里云vps上部署的

Failed at 1/3 request,Fail assert: {"re": "200", "from": "status"} from success_asserts,Response Error : HTTP 502: Bad Gateway,Request URL: https://www.right.com.cn/forum/forum.php --

网不稳定 建议家宽

duby2010 commented 2 months ago

家宽,最近有报错 2024-07-14 15:41:46 日志:Failed at 1/3 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 521: Unknown, Request URL: https://www.right.com.cn/forum/forum.php