Closed PiotrEsse closed 4 months ago
Can you share your code? It gives this error because it is not a .mp3 file.
Can't download Youtube video. It may be related to library versions. I will test it.
2024-05-07 07:58:19,889 - ERROR - An error occurred: __init__: could not find match for ^\w+\W
There is a bug with the Pytube library. I will solve this error. https://github.com/pytube/pytube/issues/1201
Code is taken straight from Your example - no changes.
If I hardcode a file in audio_path = "/home/piotr/WhisperPlus/Tutorial/zycie.mp3" then its working.
This function was working for 1-2 days, but it gives an error. I can't download videos either. I don't know why. Pytube is not an up-to-date library. I started writing a different library code.
Now you can manually download the .mp3 file and test it. There is only a bug with the download function.
I rewrote this function(download_youtube_to_mp3). I tested it and it works.
Hi, I am trying an example of Youtube to text. I am getting following error.