title: Download images with requests by generated links
body: <p>i am not able to download from JavaScript generated images and to store them on my local machine. The code below is not giving any errors but there are no images in my folder. I tried already in many ways. Here is one of them:  </p>
  
  <pre><code>path = "http://my.site.com/page/oo?_b=9V2FG34519CV2N56SLK567943N25J82V"
  os.makedirs('C:/Images', exist_ok=True)
  print('Dowload images %s...' % path)
  res = request.get(path)
  res.raise_for_status()
  
  imageFile = open(os.path.join('logos', os.path.basename(res)), 'wb')
  for chunk in res.iter_content(100000):
    imageFile.write(chunk)
  imageFile.close()
  </code></pre>
  
  <p>i am trying since two days to solve this problem, so i would be gratefully if somebody can help me!</p>