qd-today / templates

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

调侃网 评论区 #469

Open a76yyyy opened 11 months ago

a76yyyy commented 11 months ago

HAR 模板名称

调侃网

作者信息

吴彦祖

模板备注及说明

登陆后 cookie

HAR 文件名

tiaokan.har

其他信息

@1cgy1cj 由于原评论区出现问题, 已迁移至此评论区

HAR 模板内容

[
    {
        "request": {
            "method": "POST",
            "url": "https://tiaokan.world/wp-admin/admin-ajax.php",
            "headers": [
                {
                    "name": ":authority",
                    "value": "tiaokan.world"
                },
                {
                    "name": ":method",
                    "value": "POST"
                },
                {
                    "name": ":path",
                    "value": "/wp-admin/admin-ajax.php"
                },
                {
                    "name": ":scheme",
                    "value": "https"
                },
                {
                    "name": "content-type",
                    "value": "application/x-www-form-urlencoded; charset=UTF-8"
                },
                {
                    "name": "cookie",
                    "value": "{{cookie}}"
                },
                {
                    "name": "origin",
                    "value": "https://tiaokan.world"
                },
                {
                    "name": "referer",
                    "value": "https://tiaokan.world/user?pd=money"
                },
                {
                    "name": "user-agent",
                    "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60"
                }
            ],
            "cookies": [],
            "data": "action=epd_checkin",
            "mimeType": "application/x-www-form-urlencoded; charset=UTF-8"
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "name": "chongfu",
                    "re": "\"msg\":\"(.+?)\"",
                    "from": "content"
                }
            ]
        }
    },
    {
        "comment": "Unicode转换",
        "request": {
            "method": "POST",
            "url": "api://util/unicode",
            "headers": [],
            "cookies": [],
            "data": "html_unescape=false&content={{chongfu}}"
        },
        "rule": {
            "success_asserts": [],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "name": "jieguo",
                    "re": ": \"(.+?)\"",
                    "from": "content"
                }
            ]
        }
    },
    {
        "comment": "获取积分",
        "request": {
            "method": "GET",
            "url": "https://tiaokan.world/user?pd=money",
            "headers": [
                {
                    "name": "Host",
                    "value": "tiaokan.world"
                },
                {
                    "name": "User-Agent",
                    "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0"
                },
                {
                    "name": "Accept",
                    "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,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://tiaokan.world/pbhq"
                },
                {
                    "name": "Alt-Used",
                    "value": "tiaokan.world"
                },
                {
                    "name": "Connection",
                    "value": "keep-alive"
                },
                {
                    "name": "Upgrade-Insecure-Requests",
                    "value": "1"
                },
                {
                    "name": "Sec-Fetch-Dest",
                    "value": "document"
                },
                {
                    "name": "Sec-Fetch-Mode",
                    "value": "navigate"
                },
                {
                    "name": "Sec-Fetch-Site",
                    "value": "same-origin"
                },
                {
                    "name": "Sec-Fetch-User",
                    "value": "?1"
                },
                {
                    "name": "Pragma",
                    "value": "no-cache"
                },
                {
                    "name": "Cache-Control",
                    "value": "no-cache"
                },
                {
                    "name": "TE",
                    "value": "trailers"
                }
            ],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "name": "log_value",
                    "re": "(.+?)",
                    "from": "content"
                }
            ]
        }
    },
    {
        "comment": "生成日志",
        "request": {
            "method": "POST",
            "url": "api://util/urldecode",
            "headers": [],
            "cookies": [],
            "data": "content=签到状态:{{jieguo}}可用: {{log_value}}"
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                },
                {
                    "re": "\"状态\": \"200\"",
                    "from": "content"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "name": "log",
                    "re": "\"转换后\": \"(.*)\"",
                    "from": "content"
                }
            ]
        }
    }
]
a76yyyy commented 11 months ago

@1cgy1cj 由于原评论区出现问题, 已迁移至此评论区

1cgy1cj commented 11 months ago

@1cgy1cj 由于原评论区出现问题, 已迁移至此评论区

非程序员,第一次写模板,见笑了

a76yyyy commented 11 months ago

@1cgy1cj 由于原评论区出现问题, 已迁移至此评论区

非程序员,第一次写模板,见笑了

有更新直接在这个评论区上传 har 并 @a76yyyy 我即可

1cgy1cj commented 11 months ago

@1cgy1cj 由于原评论区出现问题, 已迁移至此评论区

非程序员,第一次写模板,见笑了

有更新直接在这个评论区上传 har 并 @a76yyyy 我即可

[{"request":{"method":"GET","url":"https://tiaokan.world/wp-login.php","headers":[{"name":":authority","value":"tiaokan.world"},{"name":":method","value":"GET"},{"name":":path","value":"/wp-login.php"},{"name":":scheme","value":"https"},{"name":"accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"},{"name":"cookie","value":"PHPSESSID=iaaukn8gftnjt92ft6353rjjhg; wordpress_test_cookie=WP%20Cookie%20check"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"POST","url":"https://tiaokan.world/wp-login.php","headers":[{"name":":authority","value":"tiaokan.world"},{"name":":method","value":"POST"},{"name":":path","value":"/wp-login.php"},{"name":":scheme","value":"https"},{"name":"accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"},{"name":"cookie","value":"wordpress_test_cookie=WP%20Cookie%20check; PHPSESSID=0t5pdmfue77oppoiiok1sm47s0"},{"name":"origin","value":"https://tiaokan.world"},{"name":"referer","value":"https://tiaokan.world/wp-login.php"}],"cookies":[],"data":"log={{username}}&pwd={{password}}&sum=12&num1=1&num2=11&rememberme=forever&wp-submit=%E7%99%BB%E5%BD%95&redirect_to=https%3A%2F%2Ftiaokan.world%2Fwp-admin%2F&testcookie=1","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"302","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"POST","url":"https://tiaokan.world/wp-admin/admin-ajax.php","headers":[{"name":":authority","value":"tiaokan.world"},{"name":":method","value":"POST"},{"name":":path","value":"/wp-admin/admin-ajax.php"},{"name":":scheme","value":"https"},{"name":"content-type","value":"application/x-www-form-urlencoded; charset=UTF-8"},{"name":"cookie","value":""},{"name":"origin","value":"https://tiaokan.world"},{"name":"referer","value":"https://tiaokan.world/user?pd=money"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60"}],"cookies":[],"data":"action=epd_checkin","mimeType":"application/x-www-form-urlencoded; charset=UTF-8"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"chongfu","re":"\"msg\":\"(.+?)\"","from":"content"}]}},{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"html_unescape=false&content={{chongfu}}"},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[{"name":"jieguo","re":": \"(.+?)\"","from":"content"}]}},{"comment":"获取积分","request":{"method":"GET","url":"https://tiaokan.world/user","headers":[{"name":"Host","value":"tiaokan.world"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,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://tiaokan.world/pbhq"},{"name":"Alt-Used","value":"tiaokan.world"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"log_value","re":"(.+?)","from":"content"}]}},{"comment":"生成日志","request":{"method":"POST","url":"api://util/urldecode","headers":[],"cookies":[],"data":"content=签到状态:{{jieguo}}可用: {{log_value}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"log","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]

@a76yyyy 今天发现cookies失效了,只有15天,于是重新写了一下,改成用户名(或邮箱)+密码的方式了

a76yyyy commented 11 months ago

直接上传har文件或者用代码块符号包裹起来,不然有些符号会被转义 @1cgy1cj

1cgy1cj commented 11 months ago

直接上传har文件或者用代码块符号包裹起来,不然有些符号会被转义 @1cgy1cj 我也发现这个问题了,但是无法直接上传har,打包了一下 @a76yyyy tiaokan.zip

wangleii123 commented 10 months ago

今天不能用了,不知道什么原因

zwhyaa commented 10 months ago

你好貌似失效了,请问可以修复一下吗? @a76yyyy

1cgy1cj commented 10 months ago
[
  {
    "request": {
      "method": "GET",
      "url": "https://tiaokan04.com/wp-login.php",
      "headers": [
        {
          "name": ":authority",
          "value": "tiaokan04.com"
        },
        {
          "name": ":method",
          "value": "GET"
        },
        {
          "name": ":path",
          "value": "/wp-login.php"
        },
        {
          "name": ":scheme",
          "value": "https"
        },
        {
          "name": "accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
          "name": "cookie",
          "value": "PHPSESSID=iaaukn8gftnjt92ft6353rjjhg; wordpress_test_cookie=WP%20Cookie%20check"
        }
      ],
      "cookies": []
    },
    "rule": {
      "success_asserts": [
        {
          "re": "200",
          "from": "status"
        }
      ],
      "failed_asserts": [],
      "extract_variables": []
    }
  },
  {
    "request": {
      "method": "POST",
      "url": "https://tiaokan04.com/wp-login.php",
      "headers": [
        {
          "name": ":authority",
          "value": "tiaokan04.com"
        },
        {
          "name": ":method",
          "value": "POST"
        },
        {
          "name": ":path",
          "value": "/wp-login.php"
        },
        {
          "name": ":scheme",
          "value": "https"
        },
        {
          "name": "accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
          "name": "cookie",
          "value": "wordpress_test_cookie=WP%20Cookie%20check; PHPSESSID=0t5pdmfue77oppoiiok1sm47s0"
        },
        {
          "name": "origin",
          "value": "https://tiaokan04.com"
        },
        {
          "name": "referer",
          "value": "https://tiaokan04.com/wp-login.php"
        }
      ],
      "cookies": [],
      "data": "log={{username}}&pwd={{password}}&sum=12&num1=1&num2=11&rememberme=forever&wp-submit=%E7%99%BB%E5%BD%95&redirect_to=https%3A%2F%2Ftiaokan04.com%2Fwp-admin%2F&testcookie=1",
      "mimeType": "application/x-www-form-urlencoded"
    },
    "rule": {
      "success_asserts": [
        {
          "re": "302",
          "from": "status"
        }
      ],
      "failed_asserts": [],
      "extract_variables": []
    }
  },
  {
    "request": {
      "method": "POST",
      "url": "https://tiaokan04.com/wp-admin/admin-ajax.php",
      "headers": [
        {
          "name": ":authority",
          "value": "tiaokan04.com"
        },
        {
          "name": ":method",
          "value": "POST"
        },
        {
          "name": ":path",
          "value": "/wp-admin/admin-ajax.php"
        },
        {
          "name": ":scheme",
          "value": "https"
        },
        {
          "name": "content-type",
          "value": "application/x-www-form-urlencoded; charset=UTF-8"
        },
        {
          "name": "cookie",
          "value": ""
        },
        {
          "name": "origin",
          "value": "https://tiaokan04.com"
        },
        {
          "name": "referer",
          "value": "https://tiaokan04.com/user?pd=money"
        },
        {
          "name": "user-agent",
          "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60"
        }
      ],
      "cookies": [],
      "data": "action=epd_checkin",
      "mimeType": "application/x-www-form-urlencoded; charset=UTF-8"
    },
    "rule": {
      "success_asserts": [
        {
          "re": "200",
          "from": "status"
        }
      ],
      "failed_asserts": [],
      "extract_variables": [
        {
          "name": "chongfu",
          "re": "\"msg\":\"(.+?)\"",
          "from": "content"
        }
      ]
    }
  },
  {
    "comment": "Unicode转换",
    "request": {
      "method": "POST",
      "url": "api://util/unicode",
      "headers": [],
      "cookies": [],
      "data": "html_unescape=false&content={{chongfu}}"
    },
    "rule": {
      "success_asserts": [],
      "failed_asserts": [],
      "extract_variables": [
        {
          "name": "jieguo",
          "re": ": \"(.+?)\"",
          "from": "content"
        }
      ]
    }
  },
  {
    "request": {
      "method": "GET",
      "url": "https://tiaokan04.com/user?pd=money",
      "headers": [
        {
          "name": ":authority",
          "value": "tiaokan04.com"
        },
        {
          "name": ":method",
          "value": "GET"
        },
        {
          "name": ":path",
          "value": "/user?pd=money"
        },
        {
          "name": ":scheme",
          "value": "https"
        },
        {
          "name": "accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
          "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": "cache-control",
          "value": "no-cache"
        },
        {
          "name": "pragma",
          "value": "no-cache"
        },
        {
          "name": "referer",
          "value": "https://tiaokan04.com/user?pd=money"
        },
        {
          "name": "sec-ch-ua",
          "value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Microsoft Edge\";v=\"120\""
        },
        {
          "name": "sec-ch-ua-mobile",
          "value": "?0"
        },
        {
          "name": "sec-ch-ua-platform",
          "value": "\"Windows\""
        },
        {
          "name": "sec-fetch-dest",
          "value": "document"
        },
        {
          "name": "sec-fetch-mode",
          "value": "navigate"
        },
        {
          "name": "sec-fetch-site",
          "value": "same-origin"
        },
        {
          "name": "sec-fetch-user",
          "value": "?1"
        },
        {
          "name": "upgrade-insecure-requests",
          "value": "1"
        },
        {
          "name": "user-agent",
          "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"
        }
      ],
      "cookies": []
    },
    "rule": {
      "success_asserts": [
        {
          "re": "200",
          "from": "status"
        }
      ],
      "failed_asserts": [],
      "extract_variables": [
        {
          "name": "log_value",
          "re": "<td>(.+?)</td>",
          "from": "content"
        }
      ]
    }
  },
  {
    "comment": "生成日志",
    "request": {
      "method": "POST",
      "url": "api://util/urldecode",
      "headers": [],
      "cookies": [],
      "data": "content=签到状态:{{jieguo}}可用: {{log_value}}"
    },
    "rule": {
      "success_asserts": [
        {
          "re": "200",
          "from": "status"
        },
        {
          "re": "\"状态\": \"200\"",
          "from": "content"
        }
      ],
      "failed_asserts": [],
      "extract_variables": [
        {
          "name": "__log__",
          "re": "\"转换后\": \"(.*)\"",
          "from": "content"
        }
      ]
    }
  }
]

@a76yyyy @zwhyaa @wangleii123 已更新

1cgy1cj commented 10 months ago

@a76yyyy @wangleii123 @zwhyaa 失效是因为域名换了,另外cookies只有15天,所以更新成了账号名加密码的方式,简介里“登陆后 cookie”可以改成“账号+密码”

zwhyaa commented 10 months ago

好的谢谢,已经可以用了 @1cgy1cj

wangleii123 commented 10 months ago

感谢您的辛勤劳动@1cgy1cj

66kqkq commented 4 months ago

吴彦祖大佬你好,我用最新版导入后,输入账号密码后运行提示: Failed at 1/6 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Recv failure: Connection reset by peer, Request URL: https://tiaokan04.com/wp-login.php

麻烦问下是什么原因呀,我该如何排除故障。@a76yyyy

1cgy1cj commented 4 months ago

吴彦祖大佬你好,我用最新版导入后,输入账号密码后运行提示: Failed at 1/6 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Recv failure: Connection reset by peer, Request URL: https://tiaokan04.com/wp-login.php

麻烦问下是什么原因呀,我该如何排除故障。@a76yyyy

@66kqkq 域名被墙了,调侃网有多个域名,尝试哪个域名不被墙,替换掉域名运行即可

66kqkq commented 4 months ago

吴彦祖大佬你好,我用最新版导入后,输入账号密码后运行提示:Failed at 1/6 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Recv failed: Connection reset by peer, 请求URL: https://tiaokan04.com/wp-login.php 麻烦问下是什么原因呀,我该如何排除故障。@a76yyyy

@66kqkq域名被墙了,调侃网上有多个域名,尝试每个域名不被墙,替换掉域名运行即可

好的大佬,是替换这一段内容吗: "url": "https://tiaokan04.com/wp-login.php",