主要是【key】和【location】两处,key就是之前申请的密匙,location这里填写"global",与自己之前申请时填写的一致即可。下面就是官方提供的代码: importrequests,uuid,json# Add your key and endpointkey="<your-translator-key>"endpoint="https://api.cognitive.microsofttranslator.com"# location, also known as...
const{translate}=require('bing-translate-api');translate('你好',null,'en').then(res=>{console.log(res.translation);}).catch(err=>{console.error(err);}); Translation result {// original text"text":"你好",// user-specified language code"userLang":"auto-detect",// translated text"transl...
bing-translate-apigoogle-translate-apitranslate-shell UpdatedAug 5, 2019 Shell Forked from another repository, this individual project builds further to the group assignment and adds two new features to it. apibotwikipedia-apihtml-css-javascriptbing-translate-apirequestjs ...
借助Bing Translate API翻译API实现网站多国语言翻译功能 前几天发了篇《借助Google Translate API实现网站多国语言翻译功能》,但好心人告诉我,谷歌即将关闭一些API,其中就包括谷歌翻译的API,以下是原文: 最近Google宣布将关闭一批API,被称为“春季大扫除”,其中包括了Translate API(12月1日彻底关闭)──无数开发者...
本api用于获取Bing每日一图,可随机抽取最近8天图片 API请求地址:https://api.1314.cool/bingimg 本API支持https和http请求方式 请求方法:GET/POST...json数据,url则进行302重定向到图片地址 如果type=json,返回数据有3个,url、cop...
最近Google宣布将关闭一批API,被称为“春季大扫除”,其中包括了Translate API(12月1日彻底关闭)──无数开发者都在利用它打造丰富的翻译类第三方应用。Google对此的解释是说这些API给Google带来了巨大的经济负担,且存在大量的滥用行为。 基于这种情况,我于是着手开始找其他实现办法,找了百度、搜狗、金山、有道,发现国...
最近Google宣布将关闭一批API,被称为“春季大扫除”,其中包括了Translate API(12月1日彻底关闭)──无数开发者都在利用它打造丰富的翻译类第三方应用。Google对此的解释是说这些API给Google带来了巨大的经济负担,且存在大量的滥用行为。 基于这种情况,我于是着手开始找其他实现办法,找了百度、搜狗、金山、有道,发现国...
免费翻译工具_API——使用bing引擎制作、方便好用,用法:双击运行后选择文件,等翻译完成后会给出提示,生成另一个文件。 上传者:bbslab1时间:2012-03-30 bing-translate:用于 node.js 的 Bing 翻译模块 bing-translate 用于 node.js 的 Bing 翻译模块 安装 $ npm install bing - translate 应用程序接口 var bt...
'"api.github.com"' ], networkOnly: [ // network falling back to cache, url|path|etc must included in "included" ], cacheOnly: [ // cache fallback to network, url|path|etc must included in "included" '"fanyi.youdao.com"', '"api.cognitive.microsofttranslator.com"', '"api.github...
本api用于获取Bing每日一图,可随机抽取最近8天图片 API请求地址:https://api.1314.cool/bingimg 本...