Giter Club home page Giter Club logo

translate-many-times's Introduction

translate-many-times

用谷歌翻译API翻译文本内容很多次

使用方式

node index.js [options]

Options:
  -t, --time      翻译次数,默认为20次
  -c, --content   翻译的文本内容,默认为“今晚月色真美”
  -f, --file      文本文件路径(只有content参数为空时才会读取)
  -l, --langs     语言序列,默认为 zh-CN,en

也可以用简略形式调用:

node index.js <文本内容|(-c|--content) 文本文件路径> [次数]
node index.js [次数] <文本内容|(-c|--content) 文本文件路径>

演示截图

简略形式调用

参数调用(次数在后)

参数调用(次数在前)

读取本地文件

参考文献

[1] °只为大大.Google Translate的tk生成以及参数详情[EB/OL].https://www.zhanghuanglong.com/detail/google-translate-tk-generation-and-parameter-details,2017-9-25.

[2] WKQ.爬取 谷歌翻译[EB/OL].http://weikeqin.cn/2017/11/14/crawler-google-translate/,2019-12-16.

[3] 磐石区.google translate 免费使用 /translate_a/single 接口翻译[EB/OL].https://blog.csdn.net/panshiqu/article/details/104193607,2020-2-6.

[4] 胖喵~.破解google翻译API全过程[EB/OL].https://www.cnblogs.com/by-dream/p/6554340.html,2017-3-24.

translate-many-times's People

Contributors

frederick-wang avatar

Watchers

 avatar

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.