title: raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden
body: <p>Manga (Japanese comics) aren't available in pdf but in raw images, so I created a tool that would automatically download the photos.</p>
  
  <p>Here's my code</p>
  
  <pre><code>import requests
  import urllib.request
  from bs4 import BeautifulSoup
  
  responsePage = input("Enter URL: ")
  response = requests.get(responsePage)
  
  soup = BeautifulSoup(response.text, 'html.parser')
  images = soup.findAll('img')
  
  image_name = 0
  
  for img in images[1:-1]:
      image_name += 1
      url = img['src']
      full_name = str(image_name) + '.jpg'
      print(response.headers)
      resource_image = urllib.request.urlretrieve(url, full_name)
      print(full_name + " Saved!")
  </code></pre>
  
  <p>The error I receive is:</p>
  
  <pre><code>urllib.error.HTTPError: HTTP Error 403: Forbidden
  </code></pre>
  
  <p>Any suggestions on how I can solve this problem?
  Help would be appreciated.</p>