8000 GitHub - MistressPlague/DeepLFreeLocalAPI: A workaround way to get a DeepL translation API locally while not needing a API key at all. Emulates chromium headlessly and makes a local web api.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A workaround way to get a DeepL translation API locally while not needing a API key at all. Emulates chromium headlessly and makes a local web api.

License

Notifications You must be signed in to change notification settings

MistressPlague/DeepLFreeLocalAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepL Free Local API

A workaround way to get a DeepL translation API locally while not needing a API key at all. Emulates chromium headlessly and makes a local web api.

Due to this, you can rest assured this will likely never break, and basically can't be detected, as it is quite literally running a headless web browser for it.

Expected Input JSON

[POST, application/json, http://127.0.0.1:5000/translate]

{
  "text": "hello!",
  "lang": "fr"
}

Expected Output JSON

{
    "translated_text": "Bonjour !",
    "error": ""
}

Example Library

See DeepL.cs for an example of a library, which also gives an example of all of the supported target language strings.

Note

First request of a different language will take up to 2 seconds, any after with the same language will be fast. Changing language has significant delay. This is due to how this works base-level, as it literally will have to click the language dropdown, and click the language button. It checks if you are translating the same language that is already selected, and if so, ignores this step, making it much faster for repeated output language use.

Requirements Install Command For Those New To Python

pip install -r requirements.txt

About

A workaround way to get a DeepL translation API locally while not needing a API key at all. Emulates chromium headlessly and makes a local web api.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0