Skip to main content

HTML Translator with Google Api for iBooker/ApacheCN

This project has been quarantined.

PyPI Admins need to review this project before it can be restored. While in quarantine, the project is not installable by clients, and cannot be being modified by its maintainers.

Read more in the project in quarantine help article.

Project description

BookerTrans

用于 iBooker/ApacheCN 翻译项目的 HTML 谷歌翻译工具

安装

通过pip(推荐):

pip install BookerTrans

从源码安装:

pip install git+https://github.com/apachecn/BookerTrans

部分 API 依赖 Selenium 和 Chrome。请确保安装了 Chrome,并将其驱动放到PATH下。

使用说明

btrans [-h] [-v] [-H HOST] [-P PROXY] [-t TIMEOUT] [-w WAIT_SEC] 
       [-r RETRY] [-s SRC] [-d DST]
       site fname

-H HOST: 域名,默认为 translate.google.com
-P PROXY: 代理,格式为 \d+\.\d+\.\d+\.\d+:\d+,默认为空
-t TIMEOUT: 超时时间,以秒为单位,默认为 8
-w WAIT_SEC: 两次翻译之间的延迟(以秒为单位),默认为 0.5
-r RETRY: 重试次数,默认为 10
-s SRC: 源语言,默认为 auto
-d DST: 目标语言,默认为 zh-CN
site: API 名称,可选项为 {google,google_selenium,baidu,sogou,youdao}
fname: HTML 文件名称,或者文件所在的目录名称

协议

本项目基于 SATA 协议发布。

您有义务为此开源项目点赞,并考虑额外给予作者适当的奖励。

赞助我们

另见

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BookerTrans-2023.2.21.8.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BookerTrans-2023.2.21.8-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file BookerTrans-2023.2.21.8.tar.gz.

File metadata

  • Download URL: BookerTrans-2023.2.21.8.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.13.0 pkginfo/1.9.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.8

File hashes

Hashes for BookerTrans-2023.2.21.8.tar.gz
Algorithm Hash digest
SHA256 bea44363d7eefd7b834a95838ded840841ce6162dcaf4266300b00b6cb66d60b
MD5 2a39dff39c08137bcf243dd9b35e969a
BLAKE2b-256 450afdb21b95834ed750ec7c2efbb3080c5db15c21c39a5dbad48ab7b40c6ca0

See more details on using hashes here.

File details

Details for the file BookerTrans-2023.2.21.8-py3-none-any.whl.

File metadata

  • Download URL: BookerTrans-2023.2.21.8-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.13.0 pkginfo/1.9.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.8

File hashes

Hashes for BookerTrans-2023.2.21.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8e4f77a51b60a1c51eae6801ad5dfc6674ba1d4659cd6eb3945e614fbcb59449
MD5 777c195a40556b20e394d49d332ea0dc
BLAKE2b-256 7eb5094fefa7361f729a6212d53a7572338e1bf8ab712d8b2d2a50433c2d169a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page