-
Notifications
You must be signed in to change notification settings - Fork 8
Change browser to tor #12
Comments
OK... so, it brings up a problem i didnt think when writing it. DeepL is really good caching bots. One posible solution could be copy and pasting the text with commands (ctrl + c and ctrl + v). Tried but doesnt seems to work. Other, could be change the browser to Tor like you say and create a different IP for each file translated. That brings into my mind to enable an argument for each major browser (including Tor of course) and other argument for choosing the translator (cause deepl alone could not fullfill all the user requirements -maybe another languages that deepl doesnt support or something, idk-) By the moment idk how to do it, never tried Tor at all, but should be the same, just change the selenium webdriver. Give me some time to think about it and came out with a solution. By the moment seems like you should reduce the SRT trafric on deepl. Also, another advantage with Tor and different IPs is to open multiple instances of the browser for each portion of the srt and translate it simultaneously, reducing the translation time, but could be overkill, idk, it is worth to think about it too. |
In this moment I'm really busy so this will move slowly. I will work on it when I can, seems promising. |
@andy144 Manage to solve it with a different aproach. SRT-DeepL will continue to work with Geckodriver and Firefox by default, but now you can pass your own selenium web driver like an argument, so you could create your own Tor web driver and use it. Check the example folder (didnt try it tho, so maybe it is broken) If u dont want to use Tor by any reason, now the default driver use a random free proxy on each instace, so it should not ban you even if you use it like you had been doing it Gonna leave the issue open till you can confirm that it works. Didnt have the time to try with more than two srts. This change should be in the v9.0, so dont forget to update |
Yes, it works now to bypass banning, |
Wait, how long are your subtitles? it works for me without any trouble. This program should slice the subtitle in 5000 characters and traslate portion by portion (each portion take care of the end of phrases as you said and wrap the line if needed). Idk the total length of the ones i had translated, but 2h long movie's srt works fine. Could you give me an example of what you are saying?. Also, i think this should be in a different issue, just in case anyone needs it. If i manage to see the error i'll create it myself. Thank you :D. |
Try with a srt longer than 1700 lines. Something like 2000. |
Can't replicate, I just translated 6000 lines long srt. Does it throw any error? or what happens? (please create another issue) |
I uninstalled old srt-deepl and reinstalled, Traceback (most recent call last):
|
@andy144 could you create a new issue?, so i could answer you there |
Right now I have to translate many long subtitles (about 1600 lines each).
I noticed that deepl doesn't accept that and suspends your access for a while.
I then split them in 2 and it worked like a charm, for about 5-6 srts, after which
they suspended my access again.
So, question: can you change browser to Tor? :)
I translated some docx files like that, you know,
by having other ip on every Tor instance.
Or maybe tell me how to do it, if it's not very complicated.
Even better would be to make an option for choosing tor (not everybody uses it).
thanks
The text was updated successfully, but these errors were encountered: