We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Googletrans version:
I'm submitting a ...
Current behavior:
>>> from googletrans import Translator >>> translator = Translator() >>> translator.translate('안녕하세요.') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/danroxha/Workspace/translate/lib64/python3.11/site-packages/googletrans/client.py", line 182, in translate data = self._translate(text, dest, src, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/danroxha/Workspace/translate/lib64/python3.11/site-packages/googletrans/client.py", line 78, in _translate token = self.token_acquirer.do(text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/danroxha/Workspace/translate/lib64/python3.11/site-packages/googletrans/gtoken.py", line 194, in do self._update() File "/home/danroxha/Workspace/translate/lib64/python3.11/site-packages/googletrans/gtoken.py", line 62, in _update code = self.RE_TKK.search(r.text).group(1).replace('var ', '') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'group'
Expected behavior:
Working README example
Steps to reproduce:
pip install googletrans
Related code:
from googletrans import Translator translator = Translator() translator.translate('안녕하세요.')
Other information:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Googletrans version:
I'm submitting a ...
Current behavior:
Expected behavior:
Working README example
Steps to reproduce:
pip install googletrans
;Related code:
Other information:
The text was updated successfully, but these errors were encountered: