Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deepl python脚本一直429错误 #9

Open
yhn747497 opened this issue May 8, 2023 · 3 comments
Open

deepl python脚本一直429错误 #9

yhn747497 opened this issue May 8, 2023 · 3 comments

Comments

@yhn747497
Copy link

佬 为什么我用你的python逻辑 自己写了个 成功一次后然后一直429错误 请求频率不高啊 几分钟一次了都

@akl7777777
Copy link
Owner

你是用的这个吗 https://github.com/akl7777777/deepl-free-translate-service/blob/main/deepl_translate.py

如果是的话,注意一下,请求体有几个冒号后面有空格,必须保留,格式化JSON之后就会被识别到篡改了请求

@akl7777777
Copy link
Owner

比如这一段
if (post_data["id"] + 5) % 29 == 0 or (post_data["id"] + 3) % 13 == 0:
post_str = post_str.replace('"method":"', '"method" : "', 1)
else:
post_str = post_str.replace('"method":"', '"method": "', 1)
里面的 method 后的冒号 前后空格注意一定要保留

@akl7777777
Copy link
Owner

有些是后面有空格,有些是前面有空格

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants