Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

DeepL support #6

Open
tiotrom opened this issue Feb 26, 2019 · 38 comments
Open

DeepL support #6

tiotrom opened this issue Feb 26, 2019 · 38 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tiotrom
Copy link

tiotrom commented Feb 26, 2019

Unsure if this can be done but DeepL https://www.deepl.com/translator seems to be a great translator, better than any. Is it possible to integrate with Crow Translate? Maybe check it out and thanks for your work!

@Shatur
Copy link
Member

Shatur commented Feb 26, 2019

Unfortunately, it's not possible: (
Crow Translate uses only those backends that available for free. DeepL API requires a paid subscription.

@tiotrom
Copy link
Author

tiotrom commented Feb 26, 2019

I understand. Indeed I see now that their API requires a paid subscription. Keep up the good work!

@Shatur Shatur closed this as completed Feb 26, 2019
@Shatur
Copy link
Member

Shatur commented Oct 15, 2019

I will add the ability to specify a paid account in future

@Shatur Shatur reopened this Oct 15, 2019
@rugk
Copy link

rugk commented Oct 26, 2019

Okay, that's great to hear.

@CuloArdido
Copy link

CuloArdido commented Dec 27, 2019

Unfortunately, it's not possible: (

Tell that to Deeplator. I have not checked if it works but it can serve as a basis for a C++ and QT implementation.

@VolkMilit
Copy link
Contributor

VolkMilit commented Dec 27, 2019

@CuloArdido, I just checked it, and it doesn't work. The API URL return error. Even author doesn't know how to bypass this. So no. My guess that DeepL had public API, but, unfortunately they decided to make it paid.

Proof that API is paid. 5 euro per month. But you can download their proprietary app :)

@MalteKiefer
Copy link

Did you try to get intouch with the company? Maybe there have a better offer for the OpenSource community.

@VolkMilit
Copy link
Contributor

I don't think they're going to open API for one small open source project. Neither they will make price lower for Crow.

@Xant1k
Copy link

Xant1k commented Feb 16, 2020

Если API платный то как тогда работает QTranslate с ним?

@Shatur
Copy link
Member

Shatur commented Feb 16, 2020

@Xant1k, я полагаю, платит. Не похоже что у них и другие API используются бесплатно. У Вороны использование бесплатного API заметно, т.к. при переводе большого кол-ва слов провайдер (у каждого этот лимит свой) запретит вам какое-то время переводть что-либо.

@VolkMilit
Copy link
Contributor

VolkMilit commented Feb 17, 2020

TL;DR: it's not technically possible to include DeepL for now, because of their paid and unfree API. There is also not possible to create free account. Also, I dis some research and their EULA basically doesn't allow to use API in FOSS and even Open Source projects. There is QTranslate, which claims to use DeepL API, but it's proprietary and it's seems parsing web pages or something (that's just my guess, don't quote me on that). I tried to just download DeepL page with translation with Curl, but it's, obviously, doesn't worked. There is also some technical issues with requests per day -- even if we, somehow, learn how to parse a site, CAPTCHA will kill our attempts.

@Xant1k, почти наверняка договорённость с тем же DeepL, реклама, например. Потому что QTranslate несвободный, могут творить что вздумается. Сегодня бесплатно распространяют, завтра будут драть $$$.

Ещё один вариант для Crow это парсить страницу, но это не будет так просто -- curl ничего не отдаст обратно, будет просто пустое поле; нужен бот тогда, который будет через какой-нибудь Selenium собирать информацию, что естественно за рамками Crow.

Eщё одна проблема в том, что там теперь аккаунт даже нельзя бесплатно создать, только 30 дней триала, для частных лиц, кстати, ещё и дороже выходит, непонятно почему. Просто чтобы не было недопонимания: если нажать "Создать новый аккаунт" ведёт именно на эту страницу. Видимо, когда-то, как я уже говорил, у них был бесплатный доступ для разработчиков, теперь его нет, увы и ах.

Опять же проблема: для использования api нужен постоянный ключ, Crow -- свободное ПО, то есть DeepL, теоретически, могут наехать, потому что:

Customer is obligated to keep the access credentials provided by DeepL secure, and undertakes not to disclose them to any third parties

Выдержка из лицензионного соглашения на использование API.

Кстати, вот ещё интересный пункт:

To the extent reasonable and technically possible, Customer must take precautions during the implementation of the Application using the API to ensure that Customer’s Application will continue to work properly even if the API is not available, whether caused by DeepL’s or Customer’s fault.

И ещё:

Customer must immediately inform DeepL if there are reasons to expect a significant increase in the number of API Requests for reasons such as an extraordinary surge in End Users, unusual marketing, promotions or other campaigns.

Если я правильно понимаю там ограничение на количество запросов в день, что делает этот сервис бесполезным.

Короче говоря, моё мнение, что нужно предоставить возможность ввести ключ (ну или что там потребуется) для пользователей, оплативших подписку. Для всего останьного есть ABBYY Lingvo.

EDIT: судя по FAQ, таки да, там какие-то манипуляции со страницами, но как это работает мы не узнаем. Косвенно мою теорию подтверждает, что ему нужен некий jscript.dll (обход капчи? обход Cloudflare?) В любом случае это будет сложно не только поддерживать, но и имплементировать.

@Shatur
Copy link
Member

Shatur commented Oct 4, 2020

Should be done on the QOnlineTranslator side.

@Shatur Shatur transferred this issue from crow-translate/crow-translate Oct 4, 2020
@Shatur Shatur added enhancement New feature or request help wanted Extra attention is needed labels Oct 4, 2020
@Shatur Shatur changed the title Include DeepL DeepL support Jan 19, 2021
@bugzy
Copy link

bugzy commented Oct 13, 2021

It looks like DeepL now has a free API option:

@Shatur
Copy link
Member

Shatur commented Oct 13, 2021

It would be nice to integrate. If someone want to contribute, I would suggest to look at b323583 to see how the integration is usually done.

@VolkMilit
Copy link
Contributor

VolkMilit commented Oct 14, 2021

It still doesn't support Russia, for example. List of countries, where service is available is short.
And required credit card number to register, to get free access. No, thank you.

@wokawoka
Copy link

+1

@ghost
Copy link

ghost commented Jan 16, 2023

Any updates?

@Vistaus
Copy link

Vistaus commented Jan 16, 2023

I would also love DeepL integration.

@Shatur
Copy link
Member

Shatur commented Jan 16, 2023

Currently no one working on it, but if you want to have this feature - send a PR, I will be happy to review it.

@VolkMilit
Copy link
Contributor

VolkMilit commented Jan 20, 2023

I'm already explain everything in this comment. Asking every year doesn't make API magically free (and free as a beer) or something.

Sorry if this sound rude, but that's not how opensource projects works. You can send a PR, if you're find solution, either that doesn't required paid subscription, or if you're willing to implement credentials settings into Crow UI. Either way will be appreciated. I'm, for example, not so exciting for DeepL, so I'm not interesting in implementing either of this. Maybe out of curiosity I can try to do this, but I'm short on free time. Shatur has same problems as me. Again, this is how opensource works.

To be completely honest, I want to finish work with opensource engines (Lingva - parse examples and voice support and LibreTranslate - ?) and make them default. We've already discuss this with Shatur and both come with this decision. This might be more important, because of opensource nature of this project. Also, selfhosters will benefit from this, because you can self-host Lingva\LibreTranslate on your own VPS\VDS.

@tio-trom
Copy link

As the originator of this thread, I won't even suggest DeepL anymore. Please use FOSS alternatives.

@Vistaus
Copy link

Vistaus commented Jan 20, 2023

As the originator of this thread, I won't even suggest DeepL anymore. Please use FOSS alternatives.

I will, as soon as they can provide me with decent translations. And so far, they cannot, at least with the languages I'm using them for.

@VolkMilit I don't know about others, but I wouldn't mind paying a fee, donation or sponsoring the project in order to get DeepL support implemented.

@VolkMilit
Copy link
Contributor

@Vistaus, DeepL doesn't work where I live in, so, anyway I can't use it properly. That is why pull request is more then welcome.

@ghost
Copy link

ghost commented Jan 20, 2023

@Vistaus don't DeepL have free API?

@VolkMilit
Copy link
Contributor

VolkMilit commented Jan 21, 2023

@toprak it's not. Try to register, it's immediately asking for your credit card. Well, maybe not anymore. But, that again:

image

There is no Russia, nor Ukraine, so we can't use it, even if we want. Again: PR is appreciated, if you want DeepL to work. For me api returns nothing.

Try this example from the docs:

curl -X POST 'https://api-free.deepl.com/v2/translate' \
	-H 'Authorization: DeepL-Auth-Key [yourAuthKey]' \
	-d 'text=Hello%2C%20world!' \
	-d 'target_lang=DE'

For me it's just empty response, both from browser and from cURL. Browser response with 403, (of course it's not, because I can't get my freaking key) and I can't press the "Sign up for free" button from this page.

@drunkod
Copy link

drunkod commented Feb 5, 2023

@VolkMilit
Copy link
Contributor

VolkMilit commented Feb 11, 2023

image
...which is still unavailable for us. AND we need to add GUI interface for supporting this keys, because we can't extract them from webpages, like we've already done for Google, Yandex and Bing. Yes, they are requiring key too, but we, at least, can extract them.

@drunkod
Copy link

drunkod commented Apr 10, 2023

@Shatur
Copy link
Member

Shatur commented May 30, 2023

If anyone interesting on having DeepL integration, I will happy to review and merge a PR ASAP.
But I myself currently busy for working on it on my own.

@ghost
Copy link

ghost commented Jun 26, 2023

this would be helpful

@kamaqnkatyqn
Copy link

I think the fact that you have to provide a credit card is not a problem because they don't charge you. The developer API is still free: 500.000 characters/month. In Russia, you could use a VPN if you want to use the service.
And: The possibility to tweak the translation by using glossaries would be a great improvement. No other provider has this possibility.
As to the translation direction English - German, DeepL is the best provider of all in terms of quality.
So, I still vote for the inclusion of DeepL.

@ghost
Copy link

ghost commented Jul 5, 2023

@kamaqnkatyqn but the credit card have to be registered on same country as vpns location so that wont work using deeplx api that i sent above is our best option. And i agree deepl has best translation especially when it comes to eng to turkish

@evpix
Copy link

evpix commented Sep 27, 2023

At this point, is there any progress on integrating DeepL into Crow?

@Shatur
Copy link
Member

Shatur commented Sep 27, 2023

Please, don't bump the issue without significant information.

@bege10
Copy link

bege10 commented Feb 17, 2024

@Shatur
There is an unofficial DeepL client for Android in the F-Droid repo that uses WebView and the no longer maintained Windows app QTranslate has DeepL integrated.

@viktor-zhuromskyy
Copy link

Please!
DeepL gives free API with 500K symbols allowance per month. That is more than enough for most users!

Please add this option to use DeepL in your app!
I can send you $50 to thank for adding this feature.

@Shatur
Copy link
Member

Shatur commented Feb 22, 2024

Sorry, I busy with other stuff. But PRs are welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests