Update mian.py

This commit is contained in:
sijiyo 2023-07-21 19:13:46 +08:00 committed by GitHub
parent 94d9f32e3f
commit 33440c7733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,6 @@ def main(captchaId, challenge):
detail_time = res['data']["pow_detail"]["datetime"]
with open('jiyan.js', 'r', encoding='utf-8') as f:
js = execjs.compile(f.read())
key = js.call('get_key')
w = js.call('get_w', captchaId, lot_number, detail_time)
url = "https://gcaptcha4.geetest.com/verify"
params = {
@ -45,4 +44,4 @@ def main(captchaId, challenge):
if __name__ == '__main__':
captchaId = get_captchaId()
challenge = str(uuid.uuid4())
main(captchaId, challenge)
main(captchaId, challenge)