【问题标题】:Read timeout while using Python Google Translate Api使用 Python Google Translate Api 时读取超时
【发布时间】:2022-08-04 19:57:48
【问题描述】:

在使用 Python Google Translate Api 时,我有时会在大约 3 小时内翻译至少 20,000 个句子后得到ReadTimeOutError。我知道每分钟有 600 万个字符的限制,我根本没有超过这个限制,但还有其他限制吗? (带有基本的api)

我已经阅读了所有的 Google 文档,但没有找到相关的内容。有没有办法增加超时时间,目前设置为 60 秒?

    标签: python google-translate


    【解决方案1】:

    你可以使用另一个免费且无限制如果需要,Python 的翻译模块

    deep-translator
    

    https://pypi.org/project/deep-translator/

    【讨论】:

      猜你喜欢
      • 2018-12-04
      • 2021-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-06
      • 1970-01-01
      • 2020-11-17
      • 1970-01-01
      相关资源
      最近更新 更多