title: investpy error while running for loop: ConnectionError: ERR#0015: error 406, try again later
body: <pre><code>ConnectionError                           Traceback (most recent call last)
  &lt;ipython-input-9-448d9ab61699&gt; in &lt;module&gt;()
  ----&gt; 1 bgre = inv.stocks.get_stock_information(stock=&quot;BGRE&quot;, country=&quot;India&quot; )
  
  /usr/local/lib/python3.7/dist-packages/investpy/stocks.py in get_stock_information(stock, country, as_json)
     1097 
     1098     if req.status_code != 200:
  -&gt; 1099         raise ConnectionError(&quot;ERR#0015: error &quot; + str(req.status_code) + &quot;, try again later.&quot;)
     1100 
     1101     root_ = fromstring(req.text)
  
  ConnectionError: ERR#0015: error 406, try again later.
  </code></pre>
  <p>It used to get executed without any error but now I am experiencing above error .Can someone please explain what this error type is and what should i do in this case to execute the code without any error.</p>