🚩 Report: Not working
HTTPError: HTTP Error 400: Bad Request
Traceback:
File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in run_script
exec(code, module.dict)
File "/home/user/app/app.py", line 59, in
YouTubeDownloader.run()
File "/home/user/app/app.py", line 15, in run
file = YouTubeDownloader.download_video(url)
File "/home/user/app/app.py", line 26, in download_video
.streams.filter(progressive=True, file_extension="mp4")
File "/usr/local/lib/python3.10/site-packages/pytube/main.py", line 296, in streams
return StreamQuery(self.fmt_streams)
File "/usr/local/lib/python3.10/site-packages/pytube/main.py", line 176, in fmt_streams
stream_manifest = extract.apply_descrambler(self.streaming_data)
File "/usr/local/lib/python3.10/site-packages/pytube/main.py", line 160, in streaming_data
self.bypass_age_gate()
File "/usr/local/lib/python3.10/site-packages/pytube/main.py", line 257, in bypass_age_gate
innertube_response = innertube.player(self.video_id)
File "/usr/local/lib/python3.10/site-packages/pytube/innertube.py", line 448, in player
return self._call_api(endpoint, query, self.base_data)
File "/usr/local/lib/python3.10/site-packages/pytube/innertube.py", line 390, in _call_api
response = request._execute_request(
File "/usr/local/lib/python3.10/site-packages/pytube/request.py", line 37, in _execute_request
return urlopen(request, timeout=timeout) # nosec
File "/usr/local/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/local/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/local/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)