title: Pytube: urllib.error.HTTPError: HTTP Error 410: Gone
body: <p>I've been getting this error on several programs for now.
  I've tried upgrading pytube, reinstalling it, tried some fixes, changed URLs and code, but nothing seems to work.</p>
  <pre><code>from pytube import YouTube
  
  #ask for the link from user
  link = input(&quot;Enter the link of YouTube video you want to download:  &quot;)
  yt = YouTube(link)
  
  #Showing details
  print(&quot;Title: &quot;,yt.title)
  print(&quot;Number of views: &quot;,yt.views)
  print(&quot;Length of video: &quot;,yt.length)
  print(&quot;Rating of video: &quot;,yt.rating)
  #Getting the highest resolution possible
  ys = yt.streams.get_highest_resolution()
  
  #Starting download
  print(&quot;Downloading...&quot;)
  ys.download()
  print(&quot;Download completed!!&quot;)
  </code></pre>
  <p>and this is the error code:</p>
  <pre class="lang-none prettyprint-override"><code>  File &quot;C:\Users\Madjid\PycharmProjects\pythonProject\app2.py&quot;, line 6, in &lt;module&gt;
      yt = YouTube(link)
    File &quot;C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\__main__.py&quot;, line 91, in __init__
      self.prefetch()
    File &quot;C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\__main__.py&quot;, line 181, in prefetch
      self.vid_info_raw = request.get(self.vid_info_url)
    File &quot;C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\request.py&quot;, line 36, in get
      return _execute_request(url).read().decode(&quot;utf-8&quot;)
    File &quot;C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\request.py&quot;, line 24, in _execute_request
      return urlopen(request)  # nosec
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 214, in urlopen
      return opener.open(url, data, timeout)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 523, in open
      response = meth(req, response)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 632, in http_response
      response = self.parent.error(
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 555, in error
      result = self._call_chain(*args)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 494, in _call_chain
      result = func(*args)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 747, in http_error_302
      return self.parent.open(new, timeout=req.timeout)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 523, in open
      response = meth(req, response)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 632, in http_response
      response = self.parent.error(
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 561, in error
      return self._call_chain(*args)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 494, in _call_chain
      result = func(*args)
    File &quot;E:\Python\lib\urllib\request.py&quot;, line 641, in http_error_default
      raise HTTPError(req.full_url, code, msg, hdrs, fp)
  urllib.error.HTTPError: HTTP Error 410: Gone
  </code></pre>