完成 Ruff 全量清理
This commit is contained in:
@@ -73,7 +73,7 @@ def get_challenge_gt_bak() -> tuple[str, str]:
|
||||
}
|
||||
|
||||
params = {
|
||||
"t": str(int(round(time.time() * 1000))),
|
||||
"t": str(round(time.time() * 1000)),
|
||||
}
|
||||
|
||||
response = requests.get(
|
||||
@@ -133,7 +133,7 @@ def get_js_address(gt: str, proxies: Mapping[str, str] | None = None) -> dict:
|
||||
|
||||
params = {
|
||||
"gt": gt,
|
||||
"callback": "geetest_" + str(int(round(time.time() * 1000))),
|
||||
"callback": "geetest_" + str(round(time.time() * 1000)),
|
||||
}
|
||||
|
||||
response = _get(
|
||||
@@ -173,7 +173,7 @@ def get_c_s(
|
||||
+ "&lang=zh-cn&pt=0&client_type=web&w="
|
||||
+ w
|
||||
+ "&callback=geetest_"
|
||||
+ str(int(round(time.time() * 1000))),
|
||||
+ str(round(time.time() * 1000)),
|
||||
headers=headers,
|
||||
proxies=proxies,
|
||||
)
|
||||
@@ -210,7 +210,7 @@ def req_fullpage_validate(
|
||||
+ "&lang=zh-cn&pt=0&client_type=web&w="
|
||||
+ w
|
||||
+ "&callback=geetest_"
|
||||
+ str(int(round(time.time() * 1000))),
|
||||
+ str(round(time.time() * 1000)),
|
||||
headers=headers,
|
||||
proxies=proxies,
|
||||
)
|
||||
@@ -241,7 +241,7 @@ def req_slide(gt: str, challenge: str, w2: str) -> None:
|
||||
+ "&lang=zh-cn&pt=0&client_type=web&w="
|
||||
+ w2
|
||||
+ "&callback=geetest_"
|
||||
+ str(int(round(time.time() * 1000))),
|
||||
+ str(round(time.time() * 1000)),
|
||||
headers=headers,
|
||||
timeout=REQUEST_TIMEOUT,
|
||||
)
|
||||
@@ -277,7 +277,7 @@ def get_picture(gt: str, challenge: str) -> tuple[str, str, list[int], str, str,
|
||||
"isPC": "true",
|
||||
"autoReset": "true",
|
||||
"width": "100%",
|
||||
"callback": "geetest_" + str(int(round(time.time() * 1000))),
|
||||
"callback": "geetest_" + str(round(time.time() * 1000)),
|
||||
}
|
||||
|
||||
response = requests.get(
|
||||
@@ -343,7 +343,7 @@ def req_end(gt: str, challenge: str, w: str) -> dict:
|
||||
+ "&lang=zh-cn&%24_BCm=0&client_type=web&w="
|
||||
+ w
|
||||
+ "&callback=geetest_"
|
||||
+ str(int(round(time.time() * 1000))),
|
||||
+ str(round(time.time() * 1000)),
|
||||
headers=headers,
|
||||
timeout=REQUEST_TIMEOUT,
|
||||
)
|
||||
|
||||
@@ -592,7 +592,7 @@ def H(t: int, e: str) -> str:
|
||||
n = 36 * r[0] + r[1]
|
||||
|
||||
# 计算目标值
|
||||
a = round(t) + n
|
||||
a = (t) + n
|
||||
|
||||
# 构建字符池
|
||||
_ = [[], [], [], [], []]
|
||||
|
||||
Reference in New Issue
Block a user