I am trying to translate a text using googletrans.
It was working fine till yesterday.
Today it gave an error:
Googletrans raising an error: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I have tried the code on different systems, but it is not working. Here is my code.
I am using googletrans for translating for last week. It never gave such type of error. Today only it gave an error.
from googletrans import Translator
translator=Translator()
translator.translate(text='hello', dest='de').text
Output:
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)