{"id":14989530,"url":"https://github.com/yixianle/google-translate","last_synced_at":"2025-04-06T12:12:18.845Z","repository":{"id":60893383,"uuid":"82943083","full_name":"yixianle/google-translate","owner":"yixianle","description":"翻译工具 支持网页翻译和文本翻译","archived":false,"fork":false,"pushed_at":"2019-02-20T11:40:24.000Z","size":3165,"stargazers_count":414,"open_issues_count":7,"forks_count":96,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-30T11:09:11.907Z","etag":null,"topics":["api","google","koa2","nodejs","page","react","translate","webpack"],"latest_commit_sha":null,"homepage":"http://translate.witbag.cn/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yixianle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-23T15:49:11.000Z","updated_at":"2025-02-01T05:07:38.000Z","dependencies_parsed_at":"2022-10-06T09:24:56.142Z","dependency_job_id":null,"html_url":"https://github.com/yixianle/google-translate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixianle%2Fgoogle-translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixianle%2Fgoogle-translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixianle%2Fgoogle-translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixianle%2Fgoogle-translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yixianle","download_url":"https://codeload.github.com/yixianle/google-translate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478325,"owners_count":20945266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","google","koa2","nodejs","page","react","translate","webpack"],"created_at":"2024-09-24T14:18:30.858Z","updated_at":"2025-04-06T12:12:18.821Z","avatar_url":"https://github.com/yixianle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google translate\n项目采用koa2+react \u003cbr\u003e\n由于google translate api是收费的，翻译模块用的是我另外一个项目\n[translate-api](https://github.com/yixianle/translate-api) \u003cbr\u003e\n基于爬虫技术 抓取google翻译，实现了文本翻译和网页翻译。\n### 在线地址\nhttp://translate.witbag.cn/\n\n\u003cimg alt=\"google translate\" src=\"https://raw.githubusercontent.com/yixianle/google-translate/master/public/demo.gif\"\u003e\n\n### 文本翻译\n文本翻译是先计算出google token，以post方式调用翻译接口。相比不需要计算token的get方式，突破了最大请求2048字符的限制。\u003cbr/\u003e\n\n### 网页翻译\n网页翻译是通过爬虫模拟google translate 翻译步骤\n\n# 使用\n```\n# 安装依赖\nnpm install\n# 开发环境运行\nnpm start\n# 打包编译\nnpm run build\n# 生成环境启动\nnpm run pm2\n# console\nnpm run console\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyixianle%2Fgoogle-translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyixianle%2Fgoogle-translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyixianle%2Fgoogle-translate/lists"}