title: Download images from encrypted-tbn0.gstatic.com using Python
body: <p>I am doing scraping of images from Google. I got image link in my script but this have this format</p>
  <p><a href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQh6rPd9hx_fUGzorshx1fG5kzUM5FGCSYmm2YBuLU3uSFFI5BviIWd6hrHbw&amp;s" rel="nofollow noreferrer">https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQh6rPd9hx_fUGzorshx1fG5kzUM5FGCSYmm2YBuLU3uSFFI5BviIWd6hrHbw&amp;s</a></p>
  <p>I opened and here  is the image but I cant use urllib.urlretrieve(imagenurl,imagen) for downdload.</p>
  <p>Someone know other way for download ?
  I am using python 2.7</p>
  <pre><code>import requests
  from  bs4 import BeautifulSoup
  import urllib
  
  def run():
      palabra ='pez'
      response = requests.get('https://www.google.com/search?q={}&amp;hl=es&amp;sxsrf=ALeKk00KoMQKffGLNWV5UEKbuPwpySPuig:1596391733831&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=2ahUKEwiajd7Rjv3qAhXqTN8KHSINBkcQ_AUoAXoECBoQAw&amp;biw=1262&amp;bih=593'.format(palabra))
      soup = BeautifulSoup(response.content,'html.parser')
      imagenes = soup.find_all('img')
  
      for i in range(1,5):
          imagen_i = imagenes[i]['src']
          imagen = imagen_i.split('/')[-1]
          print(imagen_i)
          #urllib.urlretrieve(imagen_i)
  
  
  if __name__ == '__main__':
      run()
  
  </code></pre>