akl7777777 / bob-plugin-akl-deepl-free-translate

**DeepL免秘钥,免启服务**,双击使用,免费无限次使用,(**新增DeepL单词查询功能**)根据网页版JavaScript加密算法逆向开发的bobplugin;所以只要官网的算法不改,理论上就可以无限使用;(重大更新!!!回馈老用户,现已优化,频繁访问后仍然可以继续免费翻译!!) **apiKey is not required,No account password required**
https://github.com/akl7777777
MIT License
550 stars 40 forks source link

deepl python脚本一直429错误 #9

Open yhn747497 opened 1 year ago

yhn747497 commented 1 year ago

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

akl7777777 commented 1 year ago

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

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

akl7777777 commented 1 year ago

比如这一段 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 commented 1 year ago

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