title: Can't download video using pytube
body: <p>I am trying to make a python program which downloads youtube video when link given using Pytube module but when i try to run it, its giving a huge error which is as follows-</p>
  <pre><code>Traceback (most recent call last):
    File &quot;c:\Users\Sumit\vs code python\projects\proj's\yt.py&quot;, line 9, in &lt;module&gt;
      yt = YouTube(link) 
    File &quot;C:\Python39\lib\site-packages\pytube\__main__.py&quot;, line 91, in __init__
      self.prefetch()
    File &quot;C:\Python39\lib\site-packages\pytube\__main__.py&quot;, line 181, in prefetch
      self.vid_info_raw = request.get(self.vid_info_url)
    File &quot;C:\Python39\lib\site-packages\pytube\request.py&quot;, line 36, in get
      return _execute_request(url).read().decode(&quot;utf-8&quot;)
    File &quot;C:\Python39\lib\site-packages\pytube\request.py&quot;, line 24, in _execute_request
      return urlopen(request)  # nosec
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 214, in urlopen
      return opener.open(url, data, timeout)
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 523, in open
      response = meth(req, response)
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 632, in http_response
      response = self.parent.error(
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 555, in error
      result = self._call_chain(*args)
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 494, in _call_chain
      result = func(*args)
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 747, in http_error_302
      return self.parent.open(new, timeout=req.timeout)
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 523, in open
      response = meth(req, response)
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 632, in http_response
      response = self.parent.error(
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 561, in error
      return self._call_chain(*args)
    File &quot;C:\Python39\lib\urllib\request.py&quot;, line 494, in _call_chain
      result = func(*args)
    File &quot;C:\Python39\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>
  <p>I dont know whats the problem and I am not understanding what should I do, Please help.
  Also, I am using python 3.9,the code is given below-</p>
  <pre><code>from pytube import YouTube 
  
  SAVE_PATH = r&quot;C:\Users\Sumit\vs code python\projects&quot;  
    
  
  link=&quot;https://www.youtube.com/watch?v=JfVOs4VSpmA&amp;t=3s&quot;
    
   
  yt = YouTube(link) 
  
  mp4files = yt.filter('mp4') 
    
  yt.set_filename('Video')  
  
  Avideo = yt.get(mp4files[-1].extension,mp4files[-1].resolution) 
  try: 
      # downloading the video 
      Avideo.download(SAVE_PATH) 
  except: 
      print(&quot;Some Error!&quot;) 
      
  print('Task Completed!') 
  </code></pre>