2022-10-20 02:11:14 +08:00
|
|
|
<!--
|
|
|
|
* @Author: Vincent Young
|
|
|
|
* @Date: 2022-10-18 07:32:29
|
|
|
|
* @LastEditors: Vincent Young
|
2023-02-18 19:46:43 +08:00
|
|
|
* @LastEditTime: 2023-02-18 19:46:10
|
2022-10-20 02:23:16 +08:00
|
|
|
* @FilePath: /DeepLX/README.md
|
2022-10-20 02:11:14 +08:00
|
|
|
* @Telegram: https://t.me/missuo
|
|
|
|
*
|
|
|
|
* Copyright © 2022 by Vincent, All Rights Reserved.
|
|
|
|
-->
|
2023-02-12 09:46:30 +08:00
|
|
|
# DeepL X
|
2022-10-20 02:13:42 +08:00
|
|
|
Permanently free DeepL API written in Golang
|
2022-10-20 02:11:14 +08:00
|
|
|
|
2022-10-20 02:23:16 +08:00
|
|
|
## Description
|
2023-02-12 09:29:59 +08:00
|
|
|
- `deeplx` in only run in port `1188`, later versions will do the specified port.
|
|
|
|
- `deeplx` is listening to `0.0.0.0:1188` by default.
|
2022-10-20 02:23:16 +08:00
|
|
|
- `deeplx` is using `DeepL` Free API.
|
|
|
|
- `deeplx` is unlimited to the number of requests.
|
|
|
|
|
2023-02-12 09:29:59 +08:00
|
|
|
## Usage
|
|
|
|
### Request Parameters
|
|
|
|
- text: string
|
|
|
|
- source_lang: string
|
|
|
|
- target_lang: string
|
|
|
|
|
|
|
|
### Response
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"code": 200,
|
|
|
|
"data": "Hello world",
|
|
|
|
"id": 8305092005
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-02-18 21:01:05 +08:00
|
|
|
### Run on Linux Server
|
|
|
|
```bash
|
|
|
|
bash <(curl -Ls https://cpp.li/deeplx)
|
|
|
|
```
|
|
|
|
|
2023-02-12 09:29:59 +08:00
|
|
|
### Run on Mac
|
2023-02-12 09:46:30 +08:00
|
|
|
1. Download the latest release of DeepL X.
|
2022-10-20 02:11:14 +08:00
|
|
|
```bash
|
|
|
|
sudo mv deeplx_darwin_amd64 /usr/local/bin/deeplx
|
2023-02-20 16:46:48 +08:00
|
|
|
sudo chmod +x /usr/local/bin/deeplx
|
2022-10-20 02:11:14 +08:00
|
|
|
```
|
|
|
|
|
2023-02-18 20:28:10 +08:00
|
|
|
2. Download the `me.missuo.deeplx.plist` to `~/Library/LaunchAgents`.
|
2022-10-20 02:11:14 +08:00
|
|
|
```bash
|
2023-02-18 19:46:43 +08:00
|
|
|
wget https://raw.githubusercontent.com/OwO-Network/DeepLX/main/me.missuo.deeplx.plist -O ~/Library/LaunchAgents/me.missuo.deeplx.plist
|
2022-10-20 02:11:14 +08:00
|
|
|
```
|
|
|
|
3. Run following command.
|
|
|
|
```bash
|
2023-02-18 19:46:43 +08:00
|
|
|
launchctl load ~/Library/LaunchAgents/me.missuo.deeplx.plist
|
|
|
|
launchctl start ~/Library/LaunchAgents/me.missuo.deeplx.plist
|
2022-10-20 02:11:14 +08:00
|
|
|
```
|
|
|
|
|
2023-02-16 20:38:33 +08:00
|
|
|
### Install from AUR
|
|
|
|
|
|
|
|
```bash
|
|
|
|
paru -S deeplx-bin
|
|
|
|
```
|
|
|
|
|
|
|
|
after install, run
|
|
|
|
|
|
|
|
```bash
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable deeplx
|
|
|
|
```
|
2022-10-20 02:11:14 +08:00
|
|
|
## Setup on [Bob App](https://bobtranslate.com/)
|
|
|
|
1. Install [bob-plugin-deeplx](https://github.com/clubxdev/bob-plugin-deeplx) on Bob.
|
|
|
|
|
|
|
|
2. Setup the API.
|
2023-02-18 21:29:55 +08:00
|
|
|
![c5c19dd89df6fae1a256d](https://missuo.ru/file/c5c19dd89df6fae1a256d.png)
|
2022-10-20 02:11:14 +08:00
|
|
|
|
2023-02-12 09:29:59 +08:00
|
|
|
## Docker Backup for zu1k
|
|
|
|
```shell
|
2023-02-18 21:29:55 +08:00
|
|
|
docker run -itd -p 1188:80 missuo/deeplx-bk
|
2023-02-12 09:29:59 +08:00
|
|
|
```
|
|
|
|
## Author
|
|
|
|
**DeepL X** © [Vincent Young](https://github.com/missuo) & [Leo Shen](https://github.com/sjlleo), Released under the [MIT](./LICENSE) License.<br>
|