DeepLX – 开源免费、不限量的第三方 DeepL 翻译 API

4 min



DeepLX
是一个项目,它基于 DeepL 服务,将其转换为本地 API,提供给第三次程序使用,如沉浸式翻译、BOb。

DeepL 本身提供了免费的有额度限制的 API,但注册很困难,如果你能注册到,那么直接使用官方 API 即可。

DeepLX

GitHub – OwO-Network/DeepLX: DeepL Free API (No TOKEN required)

DeepL Free API (No TOKEN required). Contribute to OwO-Network/DeepLX development by creating an account on .

开源,不限制请求次数(但 DeepL 可能会限制 IP)默认情况下监听本地 1188 端口。提供多种安装方式:

运行后即可获得 API 地址:http://127.0.0.1:1188/translate

在 Python 中使用:

import httpx, json

deeplx_api = "http://127.0.0.1:1188/translate"

data = {
	"text": "Hello World",
	"source_lang": "EN",
	"target_lang": "ZH"
}

post_data = json.dumps(data)
r = httpx.post(url = deeplx_api, data = post_data).text
print(r)

在 Bob 中使用:

需要为 Bob App 安装 bob-plugin-deeplx

沉浸式翻译

需要打开 沉浸式翻译 的开发者设置 > 开启 Beta 测试特性:

Enjoy it. / 好好享受吧。


Like it? Share with your friends!

0
DUN

Choose A Format
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Video
Youtube and Vimeo Embeds