Git Product home page Git Product logo

bob-plugin-akl-youdao-free-translate's Introduction

bob-plugin-akl-youdao-free-translate

免费无限次使用有道翻译,根据网页版JavaScript加密算法开发的bobplugin;所以只要官网的算法不改,理论上就可以无限使用;

本来是想做成纯插件的,但是bob内核JavaScript没有node那么全的加密库,所以只能借用Python启动一个服务运行虚拟的node环境

重大更新!有道插件新增免启动服务本地版,可以不用启动服务了;不过服务启动的方式依然保留.两种可以切换使用

重大更新,支持单个单词详细查询,并且不用再启动服务了

增加万字长文翻译功能;支持万字长文一次翻译,不用截断!

下载地址:有道Bob插件_v0.2.0

使用方法:双击安装,直接使用,支持单词模式和超长万字文本模式自动切换

效果图如下:

iShot_2023-03-05_19 02 08

image

友情链接==>ChatGPT免费桌面版客户端(支持Windows,macOS,Android)

桌面版ChatGPT下载地址:OpenAI-ChatGPT免费桌面版客户端

手机版ChatGPT下载地址:OpenAI-ChatGPT免费手机版客户端

bob翻译插件大合集:

OpenAI ChatGPT(免秘钥)插件

DeepL翻译插件(免秘钥)

有道翻译插件(免秘钥)

CNKI学术翻译插件(免秘钥)

火山翻译插件(免秘钥)

百度翻译插件(免秘钥)

腾讯翻译君插件(免秘钥)

腾讯交互翻译插件(免秘钥)

彩云小译插件(免秘钥)

只为日语 - MOJi辞書(じしょ)

Papago Naver 韩语翻译(免秘钥)

Bob翻译剪切板图片的AlfredWorkflow

Bob的Postman接口调试插件

youdao.mp4

项目结构简介: youdaoTranslateServer文件夹下用来启动Python服务,Python调用node环境的加密解密功能模拟请求 bobplugin文件夹下有两个目录 dependOnService里面是依赖于Python服务的插件,用此插件需要本地启动Python服务,本人亲测可用; independently里面是不依赖于其他服务的独立插件,但是此插件依赖的node环境尚不完善,还需要和bob开发者共通谈论完善方案,故不可用;

bob插件主要为bob用户开发,bob是一款macOS上的翻译软件,bob官网地址:https://bobtranslate.com/

使用方法如下(总共分三步):

第0步: 下载右侧的release https://github.com/akl7777777/bob-plugin-akl-youdao-free-translate/releases/download/v_0.0.7/youdaoTranslateServer_macos_x86_64

第一步: 运行youdaoTranslateServer可执行文件,由于我今天手头只有一台Intel芯片的MacBook,而Python又不能跨平台打包,所以暂时只有一个打包好的文件,不确定apple芯片是否可以用;有兴趣的同学可以自行搭建Python环境打包或者直接启动服务.我本地用的是Python3.79版本Intel芯片macOS系统;打包命令 pyinstaller --onefile youdao.py 当然在那之前你需要先 pip install pyinstaller

注意: macos由于对软件限制较⼤,对未知来源的程序是禁⽌使⽤的,所以双击多半打不开,此时需要按 下⾯的步骤进⾏操作。

打开终端,执行如下命令: chmod a+x <你的youdaoTranslateServer可执行文件存放的路径>

第⼀次跑时需要输⼊chmod。以后每次运⾏时,其它步骤不变,只是不必再输该chmod命令。

当然,如果你不想占用自己电脑的资源,有条件也可以用公司办公室的其他Windows电脑启动服务https://github.com/akl7777777/bob-plugin-akl-youdao-free-translate/releases/download/v_0.0.6/youdaoTranslateServer_windows_x86_64.exe

也可以使用公司或个人的Linux服务器启动服务https://github.com/akl7777777/bob-plugin-akl-youdao-free-translate/releases/download/v_0.0.6/youdaoTranslateServer_linux_x86_64

在后续的版本,插件会提供请求地址的输入框,填入对应的服务器地址即可;

第二步:

配置服务器域名,本地启动默认域名是http://127.0.0.1:9527/youdaoTranslate 可以不用修改;如果服务部署在其他机器,可以根据自己机器的域名来配置如下图

image

第三步:

双击.bobplugin后缀的文件即可安装;安装后尽情享受吧!

效果图如下:

image

此外,对于其他非bob用户,需要调用有道翻译的也可以直接调用服务如下图: 入参样例: {"text":"你好"} 返回值样例: { "code": 0, "translateResult": [ [ { "src": "你好", "srcPronounce": "nĭhăo", "tgt": "hello" } ] ], "type": "zh-CHS2en" } image

开发不易,如果喜欢的话,可以给请作者吃一份特色腰花面,或者喝一杯可乐

image

bob-plugin-akl-youdao-free-translate's People

Contributors

akl7777777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bob-plugin-akl-youdao-free-translate's Issues

apple Chip翻译出错

环境:macOS M1 Max python3

翻译出错:
[2023-02-18 14:19:07,315] ERROR in app: Exception on /youdaoTranslate [POST]
Traceback (most recent call last):
File "flask/app.py", line 2528, in wsgi_app
File "flask/app.py", line 1825, in full_dispatch_request
File "flask/app.py", line 1823, in full_dispatch_request
File "flask/app.py", line 1799, in dispatch_request
File "youdao.py", line 83, in youdaoTranslate
KeyError: 'translateResult'
127.0.0.1 - - [18/Feb/2023 14:19:07] "POST /youdaoTranslate HTTP/1.1" 500 -

中翻英 未返回翻译结果

非本地启动服务版本 有道翻译插件,忘记之前有道翻译是否可以 中翻英,今天发现不行——显示“接口未返回翻译结果”。
插件版本:最新 v 0.1.8
网络:直连/挂梯 都不行
版本:商店版 1.8.2 ; intel macOS13.6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.