Skip to content

一个由koa+xmldom+xpath实现的建议爬虫有道翻译词典服务

Notifications You must be signed in to change notification settings

plas007/koa-translate

Repository files navigation

一个由koa+xmldom+xpath实现的建议爬虫有道翻译词典服务

使用前需要安装 node v12.0.0+ ,然后clone本仓库启动即可。

  1. clone 到本地

    git clone https://github.com/plas007/koa-translate.git
  2. 安装依赖

    npm install
  3. 启动服务

    npm run serve
  4. 启动成功后如下图:

    1665296878281

  5. 在浏览器访问:

    http://localhost:9000/api/translate/bing/html?q=circulated&FORM=BDVSP6&cc=cn

    1665297558205

  6. 在接口调用JSON:

    http://localhost:9000/api/translate/bing/json?q=circulated&FORM=BDVSP6&cc=cn

    1665297648887

About

一个由koa+xmldom+xpath实现的建议爬虫有道翻译词典服务

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published