Evet bildiğiniz gibi youtube’a ne zaman güncelleme gelirse pytube modülü çöküyor bir süreliğine bunu biliyoruz.Peki bu sefer nasıl çözeceğim? Önceki hatamdan farklı bir hata veriyor hatayı arattım ve daha eski bir soruya denk geldim başka bir forumda ancak o çözümleri denediğimde çalışmadı aldığım hata ise şu:
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\__main__.py", line 181, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 43, in __init__
self.throttling_plan = get_throttling_plan(js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 405, in get_throttling_plan
raw_code = get_throttling_function_code(js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 311, in get_throttling_function_code
name = re.escape(get_throttling_function_name(js))
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 296, in get_throttling_function_name
raise RegexMatchError(
pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match for multiple
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\alper\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
self.run()
File "C:\Users\alper\AppData\Local\Programs\Python\Python39\lib\threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\alper\PycharmProjects\Project2\a.py", line 183, in streams
streams = YouTube(url=self.url).streams.filter(only_audio=True)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\__main__.py", line 296, in streams
return StreamQuery(self.fmt_streams)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\__main__.py", line 188, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 43, in __init__
self.throttling_plan = get_throttling_plan(js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 405, in get_throttling_plan
raw_code = get_throttling_function_code(js)
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 311, in get_throttling_function_code
name = re.escape(get_throttling_function_name(js))
File "C:\Users\alper\PycharmProjects\Project2\venv\lib\site-packages\pytube\cipher.py", line 296, in get_throttling_function_name
raise RegexMatchError(
pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match for multiple
[INFO ] [Base ] Leaving application in progress...
Process finished with exit code 0
Yardımcı olursanız çok sevinirim, teşekkürler…