python - TextBlob 翻译有限制吗?

标签 python google-translate textblob

我一直在使用 TextBlob,这是一个用于将文章翻译成不同语言的 Python 包 (https://pypi.python.org/pypi/textblob)。

阅读他们的文档后,我了解到 TextBlob 使用 Google 翻译。由于谷歌翻译不是免费服务,我想知道使用TextBlob服务翻译文章是否有使用限制?

最佳答案

Google 在其 Google Translate API 的定价页面上声明您需要设置结算才能使用 translate API。换句话说,没有免费使用层。

Important: Google Translate API v2 requires billing information for all accounts before you can start using the service.

此文本可在 https://cloud.google.com/translate/v2/pricing 上找到。

因此,除非您设置了帐户,否则根本无法使用翻译 API。

Google 文档将 https://www.googleapis.com/language/translate/v2 列为 API 端点。查看了 TextBlob 的源代码,我找不到任何地方提到的端点。相反,TextBlob 似乎正在使用 http://translate.google.com/translate_a/t ,并且 Google 的 API 文档中的任何地方都没有提到该 URL。似乎 TextBlob 根本没有使用 Google Translate API。相反,它伪造标题并声称自己是浏览器。

This是 TextBlob 从中改编其翻译功能的模块,在其描述中声明 No key, no authentication whatever

所以我想使用 TextBlob 翻译文章没有任何使用限制,因为它不使用 API。

关于python - TextBlob 翻译有限制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22555611/

相关文章:

javascript - 如何使用 jquery 为某个 div 添加谷歌翻译器

java - 使用 Jersey 对 Google Translate 进行 POST 调用会返回 HTTP 404

Python textblob 翻译 API 错误

python textblob和文本分类

python - 在没有基于模型的数据库的情况下使用 Django View 和表单

python坐标变换/插值可能吗?

python - "python -d"是做什么用的?

javascript - 让谷歌翻译插件更正和建议工作

python - 如何对德语文本进行 POS 标记?