sinedie/SRTranslator

DeepL developer API key?

dgoryeo opened this issue · 4 comments

Hi @sinedie , would this script work with DeepL (free) developer API? Do I need to give my API key to the script, or any other credentials? Thanks.

Hey @dgoryeo, yes!, you could make your own translator... Look at this to know how to.

As a help, I would put the API key in an enviroment variable, load it with python-dotenv and use the api as DeepL says it should be used (idk how to), and make the petitions inside the translate method of your own translator class.

Let me know if you need help, we could make a new example with it for people that want to use it the same way.

Thanks for the quick reply. Will look at the example.

@dgoryeo any update?

I wasn't able to use the instructions in the example --I'm novice in python. I would need to learn more about how to epand exisiting modules with new classes.

Meanwhile I came across this one: https://tern.1c7.me/#/. [thought you might be interested too.]

I can close this "issue" --would you like me to?
Thanks again!