19.10.11 11:35 작성
·
185
0
강좌대로 유투브 다운로드 받으려니까 오류나요
Traceback (most recent call last): File "C:\Users\User0\Desktop\code\section2\youtube-download.py", line 13, in <module>
videos[0].download(down_dir) File "C:\Users\User0\Anaconda3\envs\test1\lib\site-packages\pytube\streams.py", line 238, in download bytes_remaining = self.filesize File "C:\Users\User0\Anaconda3\envs\test1\lib\site-packages\pytube\streams.py", line 164, in filesize headers = request.get(self.url, headers=True) File "C:\Users\User0\Anaconda3\envs\test1\lib\site-packages\pytube\request.py", line 21, in get response = urlopen(url) File "C:\Users\User0\Anaconda3\envs\test1\lib\urllib\request.py", line 163, in urlopen
return opener.open(url, data, timeout) File "C:\Users\User0\Anaconda3\envs\test1\lib\urllib\request.py", line 472, in open
response = meth(req, response) File "C:\Users\User0\Anaconda3\envs\test1\lib\urllib\request.py", line 582, in http_response 'http', request, response, code, msg, hdrs) File "C:\Users\User0\Anaconda3\envs\test1\lib\urllib\request.py", line 510, in error return self._call_chain(*args) File "C:\Users\User0\Anaconda3\envs\test1\lib\urllib\request.py", line 444, in _call_chain
result = func(*args) File "C:\Users\User0\Anaconda3\envs\test1\lib\urllib\request.py", line 590, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden
[Finished in 3.233s]