|
照著書本打也出現錯誤, 直接拿教學檔也是 請問該如何處理 Traceback (most recent call last):
File "C:\Users\Yu\Desktop\python練習區\本書範例\ch08\pytube1.py", line 3, in <module> yt = YouTube('https://www.youtube.com/watch?v=27ob2G3GUCQ')
File "C:\ProgramData\Anaconda3\lib\site-packages\pytube\__main__.py", line 91, in __init__ self.prefetch()
File "C:\ProgramData\Anaconda3\lib\site-packages\pytube\__main__.py", line 183, in prefetch self.js_url = extract.js_url(self.watch_html)
File "C:\ProgramData\Anaconda3\lib\site-packages\pytube\extract.py", line 143, in js_url base_js = get_ytplayer_config(html)["assets"]["js"]
File "C:\ProgramData\Anaconda3\lib\site-packages\pytube\extract.py", line 202, in get_ytplayer_config raise RegexMatchError(caller="get_ytplayer_config", pattern="config_patterns")
RegexMatchError: get_ytplayer_config: could not find match for config_patterns |