title: Python google-trans-new translate raises error: JSONDecodeError: Extra data:
body: <p>While working on <a href="https://pypi.org/project/google-trans-new/" rel="noreferrer">Google translate API</a>, I found out some times google can't translate anything, while it keeps raising the same exception: Extra data.</p>
  <p>I have searched on the internet, I found a theory saying I have been blocked by Google translate somehow, or can be blocked because translation data exceeds the 5k character limit.
  <a href="https://github.com/ssut/py-googletrans/issues/47#issuecomment-450849768" rel="noreferrer">here</a> is a solution but I don't think it is the proper way to solve it.</p>
  <p>My code is not new, it has been around 1 month working properly, but a few days ago, it started raising the error, I that time I don't know how to solve it so I leave it overnight to solve it later, but when I woke up, it is working again, I thought it was an error caused by google or something so I just forget it, but at the same day, around 10 pm, It stops working. I want to say is it's very inconsistent, sometimes it works some times doesn't.</p>
  <p>How to reproduce:
  run the example code from <a href="https://pypi.org/project/google-trans-new/" rel="noreferrer">google_trans_new</a> package website with specified python version.</p>
  <p>here is my code:</p>
  <pre><code>from google_trans_new import google_translator
  
  translator = google_translator()  
  translate_text = translator.translate('สวัสดีจีน',lang_tgt='en') 
  print(translate_text)
  </code></pre>
  <p>output:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;c:/Users/my_name/MyApp.py&quot;, line 105, in &lt;module&gt;
      translate_text = translator.translate('สวัสดีจีน',lang_tgt='en')
    File &quot;C:\Users\my_name\AppData\Local\Programs\Python\Python37\lib\site-packages\google_trans_new\google_trans_new.py&quot;, line 188, in translate
      raise e
    File &quot;C:\Users\my_name\AppData\Local\Programs\Python\Python37\lib\site-packages\google_trans_new\google_trans_new.py&quot;, line 152, in translate
      response = json.loads(response)
    File &quot;C:\Users\my_name\AppData\Local\Programs\Python\Python37\lib\json\__init__.py&quot;, line 348, in loads
      return _default_decoder.decode(s)
    File &quot;C:\Users\my_name\AppData\Local\Programs\Python\Python37\lib\json\decoder.py&quot;, line 341, in decode
      raise JSONDecodeError(&quot;Extra data&quot;, s, end)
  json.decoder.JSONDecodeError: Extra data: line 1 column 371 (char 370)
  </code></pre>
  <p>I have tested on my computer, my Heroku web app(for discord bot and line bot), and my friend's laptop. They all raising the same error.</p>
  <p>my environments:</p>
  <pre><code>Python version: 3.7.0 (google-trans-new specified &gt;= 3.6)
  Heroku Python version: 3.8.10
  </code></pre>