title: Is there any advantage of Using prefetch?
body: <p>According to the documentation <a href="https://python-pytube.readthedocs.io/en/latest/api.html#pytube.YouTube.prefetch" rel="nofollow noreferrer">here</a> prefetch is believed to boost the script somehow.</p>
  <p><strong>Code, that I have tried:</strong></p>
  <pre><code>try:
      a=pytube.YouTube(self.link)
      YTOBJ=a
      STATUS=True
  except:
      STATUS=False  
  if STATUS:
      YTOBJ.prefetch()
  </code></pre>
  <p><strong>Error:</strong></p>
  <pre><code>File &quot;e:/Python files/Projects/Tool Kit/dir/no_name.py&quot;, line 83, in checkLink
      YTOBJ.prefetch()
    File &quot;E:\Anaconda_Interpreter\lib\site-packages\pytube\__main__.py&quot;, line 183, in prefetch
      self.js_url = extract.js_url(self.watch_html)
    File &quot;E:\Anaconda_Interpreter\lib\site-packages\pytube\extract.py&quot;, line 143, in js_url
      base_js = get_ytplayer_config(html)[&quot;assets&quot;][&quot;js&quot;]
    File &quot;E:\Anaconda_Interpreter\lib\site-packages\pytube\extract.py&quot;, line 202, in get_ytplayer_config
      raise RegexMatchError(caller=&quot;get_ytplayer_config&quot;, pattern=&quot;config_patterns&quot;)
  pytube.exceptions.RegexMatchError: get_ytplayer_config: could not find match for config_patterns
  </code></pre>
  <p>Even though I can still parse details from <code>YTOBJ</code>. Can someone please explain why this error exists?</p>