-
Notifications
You must be signed in to change notification settings - Fork 193
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
Baidu翻译api接口已经失效 #10
Comments
这不是商业接口。通用,免费的。 包括之前Alibaba 和bing不能使用,我之前在自己服务器上练习python,第一次测试就出现错误,绝未进行任何频繁调用。 另外,如果说是版本问题,我卸载过,重新安装,并查看版本,确实是4.4.2无疑。
|
我在win10商店了装了Python3.8,确实是正常的。 |
print(self.api_url, self.host_headers, form_data, proxies)
print(r) print(data) |
@DaPoHou 我上传模块库之前肯定是测试的,但一般不会在各个环境去测试,测试一般是测程序本身的代码问题,所以没有在Linux上进行测试。我解读一下就是说,我所有的接口都是对应各个浏览器网页版免费翻译的接口,就是你在网页上交互翻译的那个,所以401就是说某些网页版接口会知道你并没有在浏览器环境下去使用,类似反爬虫策略一样。 |
http://api.fanyi.baidu.com/doc/21
新的api接口
https://fanyi-api.baidu.com/api/trans/vip/translate
The text was updated successfully, but these errors were encountered: