{"id":21098276,"url":"https://github.com/xiaozhou26/deeplx-pro-go","last_synced_at":"2025-05-16T16:32:07.548Z","repository":{"id":226350117,"uuid":"768446311","full_name":"xiaozhou26/deeplx-pro-go","owner":"xiaozhou26","description":"已经并入源项目中https://github.com/xiaozhou26/deeplx-pro","archived":true,"fork":false,"pushed_at":"2024-08-18T16:07:18.000Z","size":55,"stargazers_count":58,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T07:33:23.368Z","etag":null,"topics":["deepl"],"latest_commit_sha":null,"homepage":"https://deeplx.niubipro.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaozhou26.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-07T05:11:36.000Z","updated_at":"2025-02-24T13:08:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"8471af52-7625-4926-b418-e157761f55a2","html_url":"https://github.com/xiaozhou26/deeplx-pro-go","commit_stats":null,"previous_names":["xiaozhou26/deeplx-pro-docker"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaozhou26%2Fdeeplx-pro-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaozhou26%2Fdeeplx-pro-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaozhou26%2Fdeeplx-pro-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaozhou26%2Fdeeplx-pro-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaozhou26","download_url":"https://codeload.github.com/xiaozhou26/deeplx-pro-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254567477,"owners_count":22092774,"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":["deepl"],"created_at":"2024-11-19T22:54:17.688Z","updated_at":"2025-05-16T16:32:07.201Z","avatar_url":"https://github.com/xiaozhou26.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# deeplx-pro-go\n\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fxiaozhou26%2Fdeeplx-pro-go\u0026env=DEEPL_COOKIES\u0026project-name=deeplx-pro-go\u0026repository-name=deeplx-pro-go)\n\n\n使用 DeepL Pro的翻译服务\n\n# 直接使用，畅行无阻。\n\n## 如何使用这个镜像\n\n### 拉取镜像\n\n你可以使用以下命令从Docker Hub拉取这个镜像：\n\n```bash\ndocker pull xiaoxiaofeihh/deeplx-pro-go:latest\n```\n\n### 运行镜像\n\n你可以使用以下命令运行这个镜像：\n\n![DeepL翻译API示例代码](https://jsd.cdn.zzko.cn/gh/xiaozhou26/tuph@main/images/2024-03-07%20120245.png)\n\n```bash\ndocker run -d --name deeplx-pro -p 9000:9000 -e DEEPL_COOKIES=\"\" xiaoxiaofeihh/deeplx-pro-go:latest\n```\n### 注：多并发只要有一个cookie失效都会影响服务\nDEEPL_COOKIES=你的dl_seesion值，用,隔开\n列如DEEPL_COOKIES=\"1560565165-1811-481,515156-561561-11651\"\n\n### 使用\n\n- [使用API教程](https://github.com/xiaozhou26/deeplx/blob/main/API.md)\n\n\n1. 替换代码中的 `cookie` 变量为你自己的 DeepL Pro cookie。\n2. 运行代码，启动 Express 服务器。\n3. 使用 POST 请求向 `http://localhost:9000/translate` 发送翻译请求，请求体包含以下字段：\n   - `text`：要翻译的文本\n   - `source_lang`：源语言（可选，默认为 'AUTO'）\n   - `target_lang`：目标语言（可选，默认为 'ZH'）\n   - `quality`: (字符串, 可选): 翻译质量。可以是 'normal' 或 'fast'。默认为 'normal'。\n\n4. 服务器将返回翻译结果的 JSON 响应。\n\n## 注意事项\n\n- 请不要频繁发送大量请求，否则可能会被 DeepL 暂时阻止 IP。\n- 本代码仅供学习和参考，请勿用于商业用途。\n- 使用 DeepL 时，请遵守其使用条款和限制。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaozhou26%2Fdeeplx-pro-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaozhou26%2Fdeeplx-pro-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaozhou26%2Fdeeplx-pro-go/lists"}