-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegexMatchError: get_throttling_function_name: could not find match for multiple #1707
Comments
Thank you for contributing to PyTube. Please remember to reference Contributing.md |
tbm estou enfretando o mesmo problema acontece o mesmo problema relatado acima e tem esse resultado no prompt
|
Even when using |
I guess that it has to do with something on YouTube's end. I'm getting the same Error. |
I've been getting the same error for the past two days. I tried searching up for solutions, and tried some of them, however none of them worked. |
My Spotify MP3 downloader script stopped working because of this. |
solvedfix the problem by removing the |
It's no use changing |
Changing line 287 of pytube.cipher to exactly |
erasing the ; helped me too |
erasing the ; helped me too |
@srccircumflex Appreciate it ! |
Testing the download() if is not None and removing the ";" solved it for me. Thanks @srccircumflex. Sample code from binarysmurf with applied fixes.
|
removing the ; inside the regex pattern in line 287 of file "pytube.cipher" totally fixed this! |
@srccircumflex |
Thank you very much @srccircumflex. Removing ; solved the problem ! |
I'm going to make a video teaching how to make the correction, go to this channel https://www.youtube.com/channel/UCZLD0izYZI-zB20Uuof9u0w and the video will be out soon. |
Me funciono quitando ";" en la línea 287 del archivo "cipher.py" |
Hi everyone, I had the same error and erasing the semicolon in the line 287 of "cipher.py" also worked for me (thanks #1707 (comment) ). Please update PyTube so everyone can use my project with unchanged version of pytube. |
Erasing the semicolon in line 287 helped me too. |
Erased the semicolon on line 287 of 'cipher.py' and it got fixed. thank you so much @srccircumflex 🌟 |
Erasing the semicolon in line 287 helped me too.⚡ |
if erasing the semicolon on line 287 does not work you can change the lines 272 and 273 to: r'a.[a-zA-Z]\s*&&\s*([a-z]\s*=\sa.get("n"))\s&&.?||\s([a-z]+)', |
In the second repexp, the square brackets must be mandatory. Need to remove the question mark after the group with them. r'a\.[a-zA-Z]\s*&&\s*\([a-z]\s*=\s*a\.get\("n"\)\)\s*&&.*?\|\|\s*([a-z]+)',
r'\([a-z]\s*=\s*([a-zA-Z0-9$]+)(\[\d+\])\([a-z]\)', |
To Fix: Change in Cipher.py Line 272 & 273 to :
And remove the ';' from Line 287. |
Before creating an issue
I have confirmed that I am on the latest version of pytube by installing from the source. I did this by running
!pip install git+https://github.com/pytube/pytube
.Describe the bug
I'm encountering a
RegexMatchError
when trying to download a YouTube video usingpytube
. The error message suggests that the functionget_throttling_function_name
could not find a match for multiple.To Reproduce
The video URL that is causing the error is https://www.youtube.com/watch?v=Xg9ihH15Uto&ab_channel=Fireship.
Here is the code where the problem is occurring:
Expected behavior
I expected the video to be downloaded without any errors.
Output
Here is the full traceback for the exception:
System information
!pip install --upgrade pytube
The text was updated successfully, but these errors were encountered: