Comments (6)
我尝试过了。也成功了。但是不合适
因为我自己试用了几分钟,报错了。查看错误原因,被谷歌翻译判定为频繁访问翻译的攻击。。。无奈的是。字幕是一句话翻译一次,两句话之间的间隔可能很短,,持续几次就被谷歌翻译拦截掉,
哪怕我设置了每一句翻译后间隔4秒钟才翻译下一句。。大约翻译了40句左右。。又封禁了。。。
经常被封禁了翻译。。所以我暂时放弃了谷歌翻译了
from potplayer_subtitle_translate_baidu.
出错时,服务器不给json内容了。会得到下面的结果。。你可以复制保存问html文件,用浏览器查看它
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=ja&dt=t&q=%E6%84%8F%E5%91%B3%E3%81%8C%E7%84%A1%E3%81%84</title></head>
<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
<div style="max-width:400px;">
<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
<div style="font-size:13px;">
Our systems have detected unusual traffic from your computer network. Please try your request again later. <a href="#" onclick="document.getElementById('infoDiv0').style.display='block';">Why did this happen?</a><br><br>
<div id="infoDiv0" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. The block will expire shortly after those requests stop.<br><br>This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests. If you share your network connection, ask your administrator for help — a different computer using the same IP address may be responsible. <a href="//support.google.com/websearch/answer/86640">Learn more</a><br><br>Sometimes you may see this page if you are using advanced terms that robots are known to use, or sending requests very quickly.
</div><br>
IP address: 这里是IP地址,我就抹除了<br>Time: 2020-02-14T09:26:39Z<br>URL: https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=ja&dt=t&q=%E6%84%8F%E5%91%B3%E3%81%8C%E7%84%A1%E3%81%84<br>
</div>
</div>
</body>
</html>
from potplayer_subtitle_translate_baidu.
@aclihub 想到了可变json可能,测试后修改方案后可行了。为了统一管理,发布成了新git。
地址是 https://github.com/fjqingyou/PotPlayer_Subtitle_Translate_Google_Single
from potplayer_subtitle_translate_baidu.
我去。。。。抱歉抱歉,一不小心看错了你要表达的东东了。。
汗。。百度方面之前没注意到有类似功能的消息。。。
from potplayer_subtitle_translate_baidu.
goole 那个url下线了
from potplayer_subtitle_translate_baidu.
能否开发一个有道翻译的版本的potplayer翻译引擎呢?
from potplayer_subtitle_translate_baidu.
Related Issues (20)
- 您好,请问能否添加一个当字幕有翻译时不进行翻译的功能呢? HOT 18
- 正在编写脚本请教 HOT 3
- 您好朋友 请问 HostLoadLibrary 你调用成功了吗? HOT 3
- error: 54001, error_msg=Invalid Sign HOT 3
- 一测试你这个百度翻译就造成potplayer无响应 HOT 3
- potplayer翻译字幕时视频会出现卡顿现象
- 【百度翻译开放平台】关于通用文本翻译API版本权益调整的通知
- 请问,error:58000,error_msg=INVALID_CLIENT_IP该怎么解决 HOT 2
- .as檔裡有點問題,導致不能翻譯為粵語和越南文 HOT 1
- 大佬啥时候写个potplayer支持aws翻译的api
- as脚本询问 HOT 4
- 大佬能根据彩云小译的api, 做个potplayer字幕翻译插件吗.... HOT 2
- 大佬您好,能否制作一个DeepL api的版本? HOT 1
- 必须要有外挂字幕吗 HOT 1
- 报错 54001 HOT 6
- potplayer启动时报错
- 使用时画面卡顿掉帧 HOT 2
- 无法使用,点击测试出现xxx HOT 6
- 对一些专业术语的翻译结果是不对的 我想对这类字幕进行再处理 怎么办呢? HOT 2
- 大佬 能否开发一个有道翻译的版本的potplayer翻译引擎呢?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from potplayer_subtitle_translate_baidu.