小编Ron*_*lan的帖子

HTTPError:HTTP 错误 400:翻译 TextBlob 上的错误请求

我正在尝试使用 TextBlob 库翻译文本,但出现以下 HTTPError 错误:HTTP Error 400: Bad request有人可以帮我解决这个问题吗?

观察:我使用 VSCode 来运行这个脚本,由于工作中的认证,我无法使用 googletrans。

from textblob import TextBlob
b = TextBlob("The weather is beautiful today. Tomorrow looks like bad weather.")

b.translate(to='es')
Run Code Online (Sandbox Code Playgroud)

python translation translate textblob google-translation-api

8
推荐指数
0
解决办法
3505
查看次数