Giter Club home page Giter Club logo

Comments (5)

missuo avatar missuo commented on August 24, 2024

I will consider adding this feature if needed. @killo3967

from deeplx.

killo3967 avatar killo3967 commented on August 24, 2024

Ok, so let me explain my idea.
So far from Calibre (https://calibre-ebook.com/) using the translation plugin (https://github.com/bookfere/Ebook-Translator-Calibre-Plugin) and with the right configuration I can use your software.

{
"name": "DeepL X",
"languages": {
"source": {
"English (British)": "EN-GB"
},
"target": {
"Español de España": "ES
}
},
"request": {
"url": "http://127.0.0.1:1188/translate",
"method": "POST",
"headers": {
"content-Type": "application/json".
},
"data": {
"source_lang":"",
"target_lang":"",
"text":""
}
},
"response": "response['data']"
}

The problem I have is the one I told you in the previous post. After several requests it gives an error. #40 (#40)

That's why I want to pass your program through the tor network so that each request comes from a different source and with this I think I could bypass the DeepL protections. I have tried with ADVOR ( https://sourceforge.net/projects/advtor/) to capture the program but I get this error message.

DeepL X has been successfully launched! Listening on 0.0.0.0.0:1188
Made by sjlleo and missuo.
2023/04/26 18:44:41 main.go:203: Post "https://www2.deepl.com/jsonrpc": dial tcp 255.16.0.0.0:443: connectex: A socket operation was attempted on an unreachable network.
[GIN] 2023/04/26 - 18:44:41 |←[97;42m 200 ←[0m| 69.7096ms | 192.168.1.50 |←[97;46m POST ←[0m "/translate"
2023/04/26 18:44:41 main.go:203: Post "https://www2.deepl.com/jsonrpc": dial tcp 255.16.0.0.0:443: connectex: A socket operation was attempted on an unreachable network.
[GIN] 2023/04/26 - 18:44:41 |←[97;42m 200 ←[0m| 1.9329ms | 192.168.1.50 |←[97;46m POST ←[0m "/translate"
2023/04/26 18:44:58 main.go:203: Post "https://www2.deepl.com/jsonrpc": dial tcp 255.16.0.0.0:443: connectex: A socket operation was attempted on an unreachable network.
[GIN] 2023/04/26 - 18:44:58 |←[97;42m 200 ←[0m| 1.905ms | 192.168.1.50 |←[97;46m POST ←[0m "/translate"

This is why this is the proxy request. Calibre sends it to your software that via proxy forwards it to the tor router (ADVOR).

from deeplx.

missuo avatar missuo commented on August 24, 2024

I've rewritten a package for Python that you can call directly from within the Python code. You can check this link for details.

from deeplx.

killo3967 avatar killo3967 commented on August 24, 2024

Sorry , but i don't understand what are you doing and my skills in pyhton are less than zero. What i need is that your api could have a proxy option.

from deeplx.

hoonlight avatar hoonlight commented on August 24, 2024

Sorry , but i don't understand what are you doing and my skills in pyhton are less than zero. What i need is that your api could have a proxy option.

OwO-Network/PyDeepLX@e56a61a

This is a PR to add proxy option.

from deeplx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.