templates icon indicating copy to clipboard operation
templates copied to clipboard

PtTime 评论区

Open a76yyyy opened this issue 2 years ago • 7 comments

a76yyyy avatar Dec 12 '21 07:12 a76yyyy

日志显示签到失败,实际签到成功 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 avatar Jan 02 '22 17:01 nerowei

日志显示签到失败,实际签到成功 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 avatar Jan 03 '22 06:01 a76yyyy

日志显示签到失败,实际签到成功 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 avatar Jan 06 '22 02:01 nerowei

提取了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

caodapengrom avatar Jan 18 '22 02:01 caodapengrom

提取了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 avatar Jan 19 '22 01:01 a76yyyy

签到失败,日志提示: 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

rainbowshine521 avatar Apr 07 '22 03:04 rainbowshine521

签到失败,日志提示: 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失效了

a76yyyy avatar Apr 15 '22 11:04 a76yyyy

签到失败 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

hijimo avatar Jun 17 '23 00:06 hijimo

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

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

a76yyyy avatar Jun 17 '23 02:06 a76yyyy

大佬应该怎么办 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

icedog111 avatar Aug 02 '23 11:08 icedog111

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 avatar Sep 01 '23 09:09 zhaoyan42

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

zhaoyan42 avatar Sep 01 '23 09:09 zhaoyan42