title: urllib.error.HTTPError: HTTP Error 403: Forbidden with urllib.requests
body: <p>I am trying to read an image URL from the internet and be able to get the image onto my machine via python, I used example used in this blog post <a href="https://www.geeksforgeeks.org/how-to-open-an-image-from-the-url-in-pil/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/how-to-open-an-image-from-the-url-in-pil/</a> which was <a href="https://media.geeksforgeeks.org/wp-content/uploads/20210318103632/gfg-300x300.png" rel="nofollow noreferrer">https://media.geeksforgeeks.org/wp-content/uploads/20210318103632/gfg-300x300.png</a>, however, when I try my own example it just doesn't seem to work I've tried the HTTP version and it still gives me the 403 error. Does anyone know what the cause could be?</p>
  <pre><code>import urllib.request
  
  urllib.request.urlretrieve(
    &quot;http://image.prntscr.com/image/ynfpUXgaRmGPwj5YdZJmaw.png&quot;,
     &quot;gfg.png&quot;)
  
  </code></pre>
  <p>Output:</p>
  <p>urllib.error.HTTPError: HTTP Error 403: Forbidden</p>