UlionTse / translators

🌏🌍🌎Translators🌎🌍🌏 is a library that aims to bring free, multiple, enjoyable translations to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
https://pypi.org/project/translators/
GNU General Public License v3.0
1.62k stars 189 forks source link

[Bug]: iciba not working now #151

Closed syaoranwe closed 6 months ago

syaoranwe commented 8 months ago

Debug Tips

What happened?

The old web API calling method of iciba has become invalid.(sign = CryptoJS.MD5("6key_web_fanyi"+"ifanyiweb8hc9s98e"+raw.replace(/(^\s*)|(\s*$)/g, "")).toString().substring(0,16)),Now, the new verification method is being used on the web (related to 6key_web_new_fanyi).

When calling the iciba translation engine, an error will be reported as follows:

requests.exceptions.HTTPError: 413 Client Error: Request Entity Too Large for url: https://ifanyi.iciba.com/index.php?c=trans&m=fy&client=6&auth_user=key_web_fanyi&sign=1c36da269a45425c

Actual result: Response code: 413 Text: Your access is prohibited.

APP Version

Irrelevant

Python Version

3.9 (Default)

Runtime Environment

Linux CentOS (Default)

Country/Region

Irrelevant

Relevant log output

No response

Screenshots

No response

Code of Conduct

UlionTse commented 8 months ago

@syaoranwe Not only 6key_web_new_fanyi changed, encrypt moethod also changed. At present, this problem has not been solved because of other things.

UlionTse commented 6 months ago

@syaoranwe pip install translators==5.9.0