qd-today / templates

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

PtTime 评论区 #130

Open a76yyyy opened 2 years ago

a76yyyy commented 2 years ago

HAR 模板名称

PtTime

作者信息

a76yyyy,zhaoyan42

模板备注及说明

登录后首页cookie https://www.pttime.org/

HAR 文件名

PtTime.har

其他信息

暂无

HAR 模板内容

[
    {
        "request": {
            "method": "GET",
            "url": "https://www.pttime.org/attendance.php",
            "headers": [
                {
                    "name": ":method",
                    "value": "GET"
                },
                {
                    "name": ":authority",
                    "value": "www.pttime.org"
                },
                {
                    "name": ":scheme",
                    "value": "https"
                },
                {
                    "name": ":path",
                    "value": "/attendance.php"
                },
                {
                    "name": "upgrade-insecure-requests",
                    "value": "1"
                },
                {
                    "name": "dnt",
                    "value": "1"
                },
                {
                    "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": "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.9"
                },
                {
                    "name": "sec-fetch-site",
                    "value": "same-origin"
                },
                {
                    "name": "sec-fetch-mode",
                    "value": "navigate"
                },
                {
                    "name": "sec-fetch-user",
                    "value": "?1"
                },
                {
                    "name": "sec-fetch-dest",
                    "value": "document"
                },
                {
                    "name": "referer",
                    "value": "https://www.pttime.org/torrents.php"
                },
                {
                    "name": "accept-encoding",
                    "value": "gzip, deflate, br"
                },
                {
                    "name": "accept-language",
                    "value": "zh-CN,zh;q=0.9"
                },
                {
                    "name": "cookie",
                    "value": "{{cookie}}"
                }
            ],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "re": "下载:.*?([\\d.KMGB]+)",
                    "from": "content",
                    "name": "xz"
                },
                {
                    "re": "上传:.*?([\\d.KMGB]+)",
                    "from": "content",
                    "name": "sc"
                },
                {
                    "re": "分享率:</font>(.*?)</span>",
                    "from": "content",
                    "name": "fx"
                },
                {
                    "re": "签到获得.*?(\\d+)",
                    "from": "content",
                    "name": "qd"
                },
                {
                    "re": "使用&说明\\<\\/a\\>\\]:(.*?)\\[<a",
                    "from": "content",
                    "name": "ml"
                },
                {
                    "re": "class='.+_Name'><b>(.+?)</b>",
                    "from": "content",
                    "name": "_name"
                }
            ]
        }
    },
    {
        "comment": "unicode转换",
        "request": {
            "method": "GET",
            "url": "api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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__"
                }
            ]
        }
    }
]
nerowei commented 2 years ago

日志显示签到失败,实际签到成功 Failed at 2/2 request, Fail assert: {"re": "\"状态\": \"200\"", "from": "content"} from success_asserts, Response Error : HTTP 599: Failed to connect to localhost port 8923 after 0 ms: Connection refused, Request URL: http://localhost:8923/util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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

a76yyyy commented 2 years ago

日志显示签到失败,实际签到成功 Failed at 2/2 request, Fail assert: {"re": ""状态": "200"", "from": "content"} from success_asserts, Response Error : HTTP 599: Failed to connect to localhost port 8923 after 0 ms: Connection refused, Request URL: http://localhost:8923/util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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

已更新,请使用最新版框架运行模板

nerowei commented 2 years ago

日志显示签到失败,实际签到成功 Failed at 2/2 request, Fail assert: {"re": ""状态": "200"", "from": "content"} from success_asserts, Response Error : HTTP 599: Failed to connect to localhost port 8923 after 0 ms: Connection refused, Request URL: http://localhost:8923/util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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

已更新,请使用最新版框架运行模板

更新框架后成功了,感谢!

caodapengrom commented 2 years ago

提取了cookie但是签到不成功 failed at 2/2 request, error:ValueError(u'Unsupported url scheme: api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3Acaodapengrom%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A%20190.2%28%E8%8E%B7%E5%BE%9715%2C%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A%E3%80%91%5Cr%5Cn%E3%80%90%E5%88%86%E4%BA%AB%E7%8E%87%3A%E6%97%A0%E9%99%90%E3%80%91%E3%80%90%E4%B8%8A%E4%BC%A0%E9%87%8F%3A35.90GB%E3%80%91%E3%80%90%E4%B8%8B%E8%BD%BD%E9%87%8F%3A0.00KB%E3%80%91',), api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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

a76yyyy commented 2 years ago

提取了cookie但是签到不成功 failed at 2/2 request, error:ValueError(u'Unsupported url scheme: api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3Acaodapengrom%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A%20190.2%28%E8%8E%B7%E5%BE%9715%2C%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A%E3%80%91%5Cr%5Cn%E3%80%90%E5%88%86%E4%BA%AB%E7%8E%87%3A%E6%97%A0%E9%99%90%E3%80%91%E3%80%90%E4%B8%8A%E4%BC%A0%E9%87%8F%3A35.90GB%E3%80%91%E3%80%90%E4%B8%8B%E8%BD%BD%E9%87%8F%3A0.00KB%E3%80%91',), api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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

请更新签到框架版本

rainbowshine521 commented 2 years ago

签到失败,日志提示: Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://www.pttime.org/attendance.php

a76yyyy commented 2 years ago

签到失败,日志提示: Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://www.pttime.org/attendance.php

测试没问题,看一下是不是cookie失效了

hijimo commented 1 year ago

签到失败 failed at 2/2 request, error:ValueError(u'Unsupported url scheme: api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A%E3%80%91%5Cr%5Cn%E3%80%90%E5%88%86%E4%BA%AB%E7%8E%87%3A%E3%80%91%E3%80%90%E4%B8%8A%E4%BC%A0%E9%87%8F%3A%E3%80%91%E3%80%90%E4%B8%8B%E8%BD%BD%E9%87%8F%3A%E3%80%91',), api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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

a76yyyy commented 1 year ago

签到失败 failed at 2/2 request, error:ValueError(u'Unsupported url scheme: api://util/unicode?content=

框架版本太低,参考模板仓库 Readme.md 说明文件

icedog111 commented 1 year ago

大佬应该怎么办 Failed at 1/2 request,Fail assert: {"re": "200", "from": "status"} from success_asserts,Response Error : HTTP 403: Forbidden,Request URL: https://www.pttime.org/attendance.php

zhaoyan42 commented 1 year ago

HAR 模板名称

PtTime

作者信息

a76yyyy,zhaoyan42

模板备注及说明

HAR 文件名

PtTime.har

其他信息

暂无

HAR 模板内容

[
    {
        "request": {
            "method": "GET",
            "url": "https://www.pttime.org/attendance.php",
            "headers": [
                {
                    "name": ":method",
                    "value": "GET"
                },
                {
                    "name": ":authority",
                    "value": "www.pttime.org"
                },
                {
                    "name": ":scheme",
                    "value": "https"
                },
                {
                    "name": ":path",
                    "value": "/attendance.php"
                },
                {
                    "name": "upgrade-insecure-requests",
                    "value": "1"
                },
                {
                    "name": "dnt",
                    "value": "1"
                },
                {
                    "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": "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.9"
                },
                {
                    "name": "sec-fetch-site",
                    "value": "same-origin"
                },
                {
                    "name": "sec-fetch-mode",
                    "value": "navigate"
                },
                {
                    "name": "sec-fetch-user",
                    "value": "?1"
                },
                {
                    "name": "sec-fetch-dest",
                    "value": "document"
                },
                {
                    "name": "referer",
                    "value": "https://www.pttime.org/torrents.php"
                },
                {
                    "name": "accept-encoding",
                    "value": "gzip, deflate, br"
                },
                {
                    "name": "accept-language",
                    "value": "zh-CN,zh;q=0.9"
                },
                {
                    "name": "cookie",
                    "value": "{{cookie}}"
                }
            ],
            "cookies": []
        },
        "rule": {
            "success_asserts": [
                {
                    "re": "200",
                    "from": "status"
                }
            ],
            "failed_asserts": [],
            "extract_variables": [
                {
                    "re": "下载:.*?([\\d.KMGB]+)",
                    "from": "content",
                    "name": "xz"
                },
                {
                    "re": "上传:.*?([\\d.KMGB]+)",
                    "from": "content",
                    "name": "sc"
                },
                {
                    "re": "分享率:</font>(.*?)</span>",
                    "from": "content",
                    "name": "fx"
                },
                {
                    "re": "签到获得.*?(\\d+)",
                    "from": "content",
                    "name": "qd"
                },
                {
                    "re": "使用&说明\\<\\/a\\>\\]:(.*?)\\[<a",
                    "from": "content",
                    "name": "ml"
                },
                {
                    "re": "class='.+_Name'><b>(.+?)</b>",
                    "from": "content",
                    "name": "_name"
                }
            ]
        }
    },
    {
        "comment": "unicode转换",
        "request": {
            "method": "GET",
            "url": "api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|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__"
                }
            ]
        }
    }
]
zhaoyan42 commented 1 year ago

@a76yyyy 魔力值正则表达式更新 image

Franinc commented 4 months ago

你好,签到失败,好像又更新了?

Failed at 1/2 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 500: Internal Server Error,
Request URL: https://www.pttime.org/attendance.php
moexizer commented 4 months ago

你好,签到失败,好像又更新了?

Failed at 1/2 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 500: Internal Server Error,
Request URL: https://www.pttime.org/attendance.php

一样问题,网站不让直接访问签到链接了。

BilikoX commented 4 months ago

你好,签到失败,好像又更新了?

Failed at 1/2 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 500: Internal Server Error,
Request URL: https://www.pttime.org/attendance.php

一样问题,网站不让直接访问签到链接了。

临时解决:加上type和uid参数 image